summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2014-04-20 18:46:35 +0100
committerkrakjoe <joe.watkins@live.co.uk>2014-04-20 18:46:35 +0100
commitf96feea00c112bc1bec3e7b677218f4b487d1152 (patch)
tree40634284ce0428154d1762ae640146bbb59cdbfc /phpdbg_prompt.c
parent373b9ecd05e5c88fd224e9a081680e1109dbb4ed (diff)
downloadphp-git-f96feea00c112bc1bec3e7b677218f4b487d1152.tar.gz
step by line and opcode modes preserved, set stepping added, help updated
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r--phpdbg_prompt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 1b1cb25215..b8df289687 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -1230,6 +1230,7 @@ zend_vm_enter:
#endif
#define DO_INTERACTIVE() do { \
+ PHPDBG_G(lline) = zend_get_executed_lineno(TSRMLS_C);\
if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL)) { \
phpdbg_list_file( \
zend_get_executed_filename(TSRMLS_C), \
@@ -1331,7 +1332,10 @@ zend_vm_enter:
}
if (PHPDBG_G(flags) & PHPDBG_IS_STEPPING) {
- DO_INTERACTIVE();
+ if ((PHPDBG_G(flags) & PHPDBG_STEP_OPCODE) ||
+ (execute_data->opline->lineno != PHPDBG_G(lline))) {
+ DO_INTERACTIVE();
+ }
}
next: