com php-src: cont: phpdbg_help.c phpdbg_help.h phpd bg_prompt.c
| From: | Bob Weinand | Date: | Sun, 10 Nov 2013 15:32:24 +0000 |
| Subject: | com php-src: cont: phpdbg_help.c phpdbg_help.h phpd bg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75214@lists.php.net to get a copy of this message | ||
Commit: 48f9db90dd9b6ac98a419a06645c79ec6a82d8ad
Author: krakjoe <joe.watkins@live.co.uk> Sun, 10 Nov 2013 15:32:24 +0000
Parents: 2770068e76c9130408811041ead74dd75ee7be22
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=48f9db90dd9b6ac98a419a06645c79ec6a82d8ad
Log:
cont
Changed paths:
M phpdbg_help.c
M phpdbg_help.h
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_help.c b/phpdbg_help.c
index b397198..4edc20b 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 7359812..ca510b9 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 54fa53f..50a7fef 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"),