summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-04-20 12:22:55 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-04-20 12:23:11 +0200
commit1a249bd6745131cc68f72b2cfc9b8ca789b221ee (patch)
tree5f8057068b2e548adf6ae1bec3cd44a2eebdec30 /sapi/phpdbg/phpdbg.c
parent1c3b99c4ff20bdce1c589318c39e7fd20d6f9ee2 (diff)
downloadphp-git-1a249bd6745131cc68f72b2cfc9b8ca789b221ee.tar.gz
Shorten opline dump lines and show literals
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index a1af1e0ea9..a93a062d2e 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -763,6 +763,7 @@ const opt_struct OPTIONS[] = { /* {{{ */
#endif
{'x', 0, "xml output"},
{'p', 2, "show opcodes"},
+ {'o', 0, "display opline addresses"},
{'h', 0, "help"},
{'V', 0, "version"},
{'-', 0, NULL}
@@ -1192,7 +1193,7 @@ phpdbg_main:
if (sscanf(php_optarg, "%d", &listen) != 1) {
listen = 8000;
}
- break;
+ break;
case 'a': { /* set bind address */
free(address);
@@ -1213,6 +1214,10 @@ phpdbg_main:
settings = (void *) 0x1;
} break;
+ case 'o':
+ flags |= PHPDBG_PRINT_OPLINE_ADDR;
+ break;
+
case 'h': {
sapi_startup(phpdbg);
phpdbg->startup(phpdbg);