com php-src: finish?: phpdbg_prompt.c

From: Date: Sun, 17 Nov 2013 15:01:22 +0000
Subject: com php-src: finish?: phpdbg_prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74889@lists.php.net to get a copy of this message
Commit: e2f20c57c108ca2c6784e1367c9b0c68f73969c7 Author: krakjoe <joe.watkins@live.co.uk> Sun, 17 Nov 2013 15:01:22 +0000 Parents: f2b8cdc5be2612f3dff014ededab1ce36f884069 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e2f20c57c108ca2c6784e1367c9b0c68f73969c7 Log: finish? Changed paths: M phpdbg_prompt.c Diff: diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index ef04132..069f92a 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -985,7 +985,7 @@ void phpdbg_execute_ex(zend_op_array *op_array TSRMLS_DC) /* {{{ */ int last_step = 0; uint last_lineno; const char *last_file; - const zend_execute_data *last_exec = NULL, *last_prev_exec; + zend_op *last_op = NULL; #if PHP_VERSION_ID < 50500 if (EG(exception)) { @@ -1038,20 +1038,22 @@ zend_vm_enter: /* skip possible breakpoints */ goto next; } + if (last_step == PHPDBG_UNTIL && last_file == execute_data->op_array->filename && last_lineno == execute_data->opline->lineno) { /* skip possible breakpoints */ goto next; } + if (last_step == PHPDBG_FINISH) { - if (!(execute_data->prev_execute_data == last_exec - && execute_data == last_prev_exec)) { + if (execute_data->opline < last_op) { /* skip possible breakpoints */ goto next; + } else { + last_step = 0; + last_op = NULL; } - last_exec = NULL; - last_prev_exec = NULL; } /* not while in conditionals */ @@ -1101,9 +1103,8 @@ next: last_lineno = execute_data->opline->lineno; last_file = execute_data->op_array->filename; - if (last_step == PHPDBG_FINISH && last_exec == NULL) { - last_exec = execute_data; - last_prev_exec = execute_data->prev_execute_data; + if (last_step == PHPDBG_FINISH && !last_op) { + last_op = &execute_data->op_array->opcodes[execute_data->op_array->last-1]; } PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);

« previous php.cvs (#74889) next »