diff options
author | Nikita Popov <nikic@php.net> | 2015-07-10 11:22:34 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-07-10 11:39:54 +0200 |
commit | bd72fdca98d093f5a905d86cbe1ab5f89b36d62d (patch) | |
tree | 1335637afeed865926a11d40b6e5076843ec50ff /sapi/phpdbg/phpdbg_print.c | |
parent | 95ff2852eeb223789379e9b2714ca081d00d27f6 (diff) | |
download | php-git-bd72fdca98d093f5a905d86cbe1ab5f89b36d62d.tar.gz |
Better opcode dump for finally
* Move opcode decode into opline decode, so we can adjust it for
extended_value.
* Show extended_value and secondary jump ops for FAST_CALL and
FAST_RET.
Diffstat (limited to 'sapi/phpdbg/phpdbg_print.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_print.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_print.c b/sapi/phpdbg/phpdbg_print.c index 95e0caf784..eff9a406e1 100644 --- a/sapi/phpdbg/phpdbg_print.c +++ b/sapi/phpdbg/phpdbg_print.c @@ -83,10 +83,9 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */ do { char *decode = phpdbg_decode_opline(op_array, opline); if (decode != NULL) { - phpdbg_writeln("print", "line=\"%u\" opnum=\"%u\" opcode=\"%s\" op=\"%s\"", " L%-4u #%-5u %-23s %s", + phpdbg_writeln("print", "line=\"%u\" opnum=\"%u\" op=\"%s\"", " L%-4u #%-5u %s", opline->lineno, opcode, - phpdbg_decode_opcode(opline->opcode) + 5, /* remove ZEND_ prefix */ decode); free(decode); } else { |