1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 12:42:29 +02:00

fix stepping

This commit is contained in:
krakjoe
2013-11-14 16:14:20 +00:00
parent b4de11a2b4
commit e4fefee020

View File

@@ -595,6 +595,12 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
if (!EG(in_execution)) {
phpdbg_error("Not running");
}
#ifdef HAVE_LIBREADLINE
if (cmd) {
free(cmd);
}
#endif
return PHPDBG_NEXT;
}
}
@@ -720,16 +726,16 @@ zend_vm_enter:
DO_INTERACTIVE();
}
}
next:
PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);
if (!(PHPDBG_G(flags) & PHPDBG_IN_COND_BP)) {
if ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)) {
DO_INTERACTIVE();
}
}
next:
PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);
if (PHPDBG_G(vmret) > 0) {
switch (PHPDBG_G(vmret)) {
case 1: