com php-src: ws: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Mon, 11 Nov 2013 17:12:31 +0000 |
| Subject: | com php-src: ws: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75124@lists.php.net to get a copy of this message | ||
Commit: 5ef19b1b455f1ed503c73807182ae3d3bf49e806
Author: krakjoe <joe.watkins@live.co.uk> Mon, 11 Nov 2013 17:12:31 +0000
Parents: fb815caf7af1a570806f32c906aee5ee9018f1b0
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5ef19b1b455f1ed503c73807182ae3d3bf49e806
Log:
ws
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 2377a14..1fdf7c8 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");
} /* }}} */