From 48f9db90dd9b6ac98a419a06645c79ec6a82d8ad Mon Sep 17 00:00:00 2001 From: krakjoe Date: Sun, 10 Nov 2013 15:32:24 +0000 Subject: [PATCH] cont --- phpdbg_help.c | 30 +++++++++++++++++++++--------- phpdbg_help.h | 2 ++ phpdbg_prompt.c | 5 +++++ 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/phpdbg_help.c b/phpdbg_help.c index b397198841..4edc20bb55 100644 --- a/phpdbg_help.c +++ b/phpdbg_help.c @@ -55,14 +55,14 @@ PHPDBG_HELP(compile) /* {{{ */ PHPDBG_HELP(print) /* {{{ */ { - printf("By default, print will show information about the current execution environment\n"); - printf("To show specific information pass an expression to print, for example:\n"); - printf("\tphpdbg> print opcodes[0]\n"); - printf("Will show the opline @ 0\n"); - printf("Available print commands:\n"); - printf("\tNone\n"); + printf("By default, print will show information about the current execution environment\n"); + printf("To show specific information pass an expression to print, for example:\n"); + printf("\tphpdbg> print opcodes[0]\n"); + printf("Will show the opline @ 0\n"); + printf("Available print commands:\n"); + printf("\tNone\n"); - return SUCCESS; + return SUCCESS; } /* }}} */ PHPDBG_HELP(run) /* {{{ */ @@ -80,7 +80,19 @@ PHPDBG_HELP(eval) /* {{{ */ PHPDBG_HELP(break) /* {{{ */ { - printf("doing break help: %s\n", expr); + printf("Setting a breakpoint stops execution at a specific stage, the syntax is:\n"); + printf("\tfile:line\n"); + printf("[more to come]\n"); + printf("For example:\n"); + printf("\tphpdbg> break test.php:1\n"); + printf("Will break execution on line 1 of test.php\n"); + + return SUCCESS; +} /* }}} */ - return SUCCESS; +PHPDBG_HELP(cont) /* {{{ */ +{ + printf("Continues execution after a breakpoint is met\n"); + printf("[Warnings about using stepping and break points here]\n"); + return SUCCESS; } /* }}} */ diff --git a/phpdbg_help.h b/phpdbg_help.h index 7359812b70..ca510b942a 100644 --- a/phpdbg_help.h +++ b/phpdbg_help.h @@ -39,6 +39,7 @@ PHPDBG_HELP(run); PHPDBG_HELP(eval); PHPDBG_HELP(print); PHPDBG_HELP(break); +PHPDBG_HELP(cont); /** * Commands @@ -52,6 +53,7 @@ static const phpdbg_command_t phpdbg_help_commands[] = { PHPDBG_HELP_D(eval, "access to eval() allows you to affect the environment during execution"), PHPDBG_HELP_D(print, "printing allows inspection of the execution environment"), PHPDBG_HELP_D(break, "breakpoints allow execution interruption"), + PHPDBG_HELP_D(cont, "use continue when a break point is met"), {NULL, 0, 0} }; diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 54fa53f18f..50a7fef922 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -94,6 +94,10 @@ static PHPDBG_COMMAND(next) { /* {{{ */ return PHPDBG_NEXT; } /* }}} */ +static PHPDBG_COMMAND(cont) { /* {{{ */ + return SUCCESS; +} /* }}} */ + static PHPDBG_COMMAND(run) { /* {{{ */ if (PHPDBG_G(ops) || PHPDBG_G(exec)) { if (!PHPDBG_G(ops)) { @@ -263,6 +267,7 @@ static const phpdbg_command_t phpdbg_prompt_commands[] = { PHPDBG_COMMAND_D(eval, "evaluate some code"), PHPDBG_COMMAND_D(print, "print something"), PHPDBG_COMMAND_D(break, "set breakpoint"), + PHPDBG_COMMAND_D(cont, "continue execution"), PHPDBG_COMMAND_D(back, "show backtrace"), PHPDBG_COMMAND_D(help, "show help menu"), PHPDBG_COMMAND_D(quit, "exit phpdbg"), -- 2.40.0