com php-src: correction to headers backtrace help: phpdbg.h phpdbg_help.c phpdbg_help.h
| From: | Bob Weinand | Date: | Sun, 10 Nov 2013 15:54:19 +0000 |
| Subject: | com php-src: correction to headers backtrace help: phpdbg.h phpdbg_help.c phpdbg_help.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75210@lists.php.net to get a copy of this message | ||
Commit: 4ef6705a747826052d83d2470e4f85db8a514a2e
Author: krakjoe <joe.watkins@live.co.uk> Sun, 10 Nov 2013 15:54:19 +0000
Parents: 940f4e27de7d1babd48f3adb4ea284e57efde015
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4ef6705a747826052d83d2470e4f85db8a514a2e
Log:
correction to headers
backtrace help
Changed paths:
M phpdbg.h
M phpdbg_help.c
M phpdbg_help.h
Diff:
diff --git a/phpdbg.h b/phpdbg.h
index 26fb118..f34fa4c 100644
--- a/phpdbg.h
+++ b/phpdbg.h
@@ -22,6 +22,7 @@
#include "zend_ini_scanner.h"
#include "zend_globals.h"
#include "zend_stream.h"
+#include "zend_builtin_functions.h"
#include "SAPI.h"
#include <php_config.h>
#include "php_main.h"
diff --git a/phpdbg_help.c b/phpdbg_help.c
index 4edc20b..b3467a4 100644
--- a/phpdbg_help.c
+++ b/phpdbg_help.c
@@ -96,3 +96,11 @@ PHPDBG_HELP(cont) /* {{{ */
printf("[Warnings about using stepping and break points here]\n");
return SUCCESS;
} /* }}} */
+
+PHPDBG_HELP(back) { /* {{{ */
+ printf("The backtrace is gathered with the default debug_backtrace
functionality.\n");
+ printf("You can set the limit on the trace, for example:\n");
+ printf("phpdbg> back 5\n");
+ printf("Will limit the number of frames to 5, the default is no limit\n");
+ return SUCCESS;
+} /* }}} */
diff --git a/phpdbg_help.h b/phpdbg_help.h
index ca510b9..597dfdc 100644
--- a/phpdbg_help.h
+++ b/phpdbg_help.h
@@ -40,6 +40,7 @@ PHPDBG_HELP(eval);
PHPDBG_HELP(print);
PHPDBG_HELP(break);
PHPDBG_HELP(cont);
+PHPDBG_HELP(back);
/**
* Commands
@@ -54,6 +55,7 @@ static const phpdbg_command_t phpdbg_help_commands[] = {
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"),
+ PHPDBG_HELP_D(back, "show debug backtrace information during execution"),
{NULL, 0, 0}
};