diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-20 19:55:44 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-20 19:55:44 +0200 |
| commit | 422dc49c0d02f8ff8903d42a91bf8a1316d62211 (patch) | |
| tree | 9f0215dc5f6705c051d6b8f176feb1a920f45c77 /phpdbg_set.c | |
| parent | 56293fc0dd288f1c1a68880b6055f2eca8dad0e2 (diff) | |
| parent | 373b9ecd05e5c88fd224e9a081680e1109dbb4ed (diff) | |
| download | php-git-422dc49c0d02f8ff8903d42a91bf8a1316d62211.tar.gz | |
Merge branch 'master' of https://github.com/krakjoe/phpdbg
Conflicts:
phpdbg_help.c
phpdbg_prompt.c
Diffstat (limited to 'phpdbg_set.c')
| -rw-r--r-- | phpdbg_set.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpdbg_set.c b/phpdbg_set.c index aeb882657e..888da8f77d 100644 --- a/phpdbg_set.c +++ b/phpdbg_set.c @@ -36,6 +36,7 @@ const phpdbg_command_t phpdbg_set_commands[] = { PHPDBG_SET_COMMAND_D(color, "usage: set color <element> <color>", 'c', set_color, NULL, "ss"), PHPDBG_SET_COMMAND_D(colors, "usage: set colors [<on|off>]", 'C', set_colors, NULL, "|b"), #endif + PHPDBG_SET_COMMAND_D(step, "usage: set oplog [<on|off]", 's', set_step, NULL, "|b"), PHPDBG_SET_COMMAND_D(oplog, "usage: set oplog [<output>]", 'O', set_oplog, NULL, "|s"), PHPDBG_SET_COMMAND_D(break, "usage: set break id [<on|off>]", 'b', set_break, NULL, "l|b"), PHPDBG_SET_COMMAND_D(breaks, "usage: set breaks [<on|off>]", 'B', set_breaks, NULL, "|b"), @@ -100,6 +101,20 @@ PHPDBG_SET(breaks) /* {{{ */ return SUCCESS; } /* }}} */ +PHPDBG_SET(step) /* {{{ */ +{ + if (param->num) { + PHPDBG_G(flags) |= PHPDBG_IS_OPLINE_STEPPING; + } else { + PHPDBG_G(flags) &= ~PHPDBG_IS_OPLINE_STEPPING; + } + + phpdbg_notice("Stepping opcode-by-opcode %s", + (PHPDBG_G(flags) & PHPDBG_IS_STEPPING) ? "on" : "off"); + + return SUCCESS; +} /* }}} */ + #ifndef _WIN32 PHPDBG_SET(color) /* {{{ */ { |
