From: krakjoe Date: Mon, 11 Nov 2013 17:12:31 +0000 (+0000) Subject: ws X-Git-Tag: php-5.6.0alpha1~110^2~474 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ef19b1b455f1ed503c73807182ae3d3bf49e806;p=php ws --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 2377a14f07..1fdf7c8e7a 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -534,66 +534,65 @@ zend_vm_enter: execute_data TSRMLS_CC); if (PHPDBG_G(has_file_bp) - && phpdbg_find_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) { - while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { - if (!PHPDBG_G(quitting)) { - continue; - } - } - } + && phpdbg_find_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { + if (!PHPDBG_G(quitting)) { + continue; + } + } + } if (PHPDBG_G(has_sym_bp) && execute_data->opline->opcode != ZEND_RETURN) { zend_execute_data *previous = execute_data->prev_execute_data; if (previous && previous != execute_data && previous->opline) { - if (previous->opline->opcode == ZEND_DO_FCALL - || previous->opline->opcode == ZEND_DO_FCALL_BY_NAME) { - if (phpdbg_find_breakpoint_symbol( - previous->function_state.function TSRMLS_CC) == SUCCESS) { - while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { - if (!PHPDBG_G(quitting)) { - continue; - } - } - } - } - } + if (previous->opline->opcode == ZEND_DO_FCALL + || previous->opline->opcode == ZEND_DO_FCALL_BY_NAME) { + if (phpdbg_find_breakpoint_symbol( + previous->function_state.function TSRMLS_CC) == SUCCESS) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { + if (!PHPDBG_G(quitting)) { + continue; + } + } + } + } + } } - + if (PHPDBG_G(has_opline_bp) - && phpdbg_find_breakpoint_opline(execute_data->opline TSRMLS_CC) == SUCCESS) { - while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { - if (!PHPDBG_G(quitting)) { - continue; - } - } - } - - PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC); - - if (PHPDBG_G(stepping)) { - while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { - if (!PHPDBG_G(quitting)) { - continue; - } - } - } + && phpdbg_find_breakpoint_opline(execute_data->opline TSRMLS_CC) == SUCCESS) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { + if (!PHPDBG_G(quitting)) { + continue; + } + } + } - if (PHPDBG_G(vmret) > 0) { - switch (PHPDBG_G(vmret)) { - case 1: - EG(in_execution) = original_in_execution; - return; - case 2: - goto zend_vm_enter; - break; - case 3: - execute_data = EG(current_execute_data); - break; - default: + PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC); + + if (PHPDBG_G(stepping)) { + while (phpdbg_interactive(TSRMLS_C) != PHPDBG_NEXT) { + if (!PHPDBG_G(quitting)) { + continue; + } + } + } + + if (PHPDBG_G(vmret) > 0) { + switch (PHPDBG_G(vmret)) { + case 1: + EG(in_execution) = original_in_execution; + return; + case 2: + goto zend_vm_enter; + break; + case 3: + execute_data = EG(current_execute_data); + break; + default: break; } } - } zend_error_noreturn(E_ERROR, "Arrived at end of main loop which shouldn't happen"); } /* }}} */