summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2013-11-24 12:07:06 +0000
committerkrakjoe <joe.watkins@live.co.uk>2013-11-24 12:07:06 +0000
commit3d168401ea48cf6c6da085ce0acd4535d785054d (patch)
treefcbf7835611842ffab2cb7d70d17db55b01e9e7a /phpdbg_prompt.c
parent72ffef13a113a9f72eb39d5f8487ba0b646505f1 (diff)
parent81eaf1fe08a72b89020bf95e8d97dc4dac4a8cd5 (diff)
downloadphp-git-3d168401ea48cf6c6da085ce0acd4535d785054d.tar.gz
Merge branch 'master' of https://github.com/krakjoe/phpdbg
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 60b48a15f9..ba10e2e47b 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -775,7 +775,11 @@ PHPDBG_COMMAND(break) /* {{{ */
phpdbg_set_breakpoint_opline(param->addr TSRMLS_CC);
break;
case NUMERIC_PARAM:
- phpdbg_set_breakpoint_file(phpdbg_current_file(TSRMLS_C), param->num TSRMLS_CC);
+ if (PHPDBG_G(exec)) {
+ phpdbg_set_breakpoint_file(phpdbg_current_file(TSRMLS_C), param->num TSRMLS_CC);
+ } else {
+ phpdbg_error("Execution context not set !");
+ }
break;
case METHOD_PARAM:
phpdbg_set_breakpoint_method(param->method.class, param->method.name TSRMLS_CC);