diff options
author | krakjoe <joe.watkins@live.co.uk> | 2014-04-19 21:22:09 +0100 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2014-04-19 21:22:09 +0100 |
commit | fd74024a4940fd8fc10daf9181beebc44c21ca32 (patch) | |
tree | baaf95866105a40e1c3d6f57d45fb21128da43e3 /phpdbg_prompt.c | |
parent | 89868dd4d9f9271e0d042549adf0d920d29d3067 (diff) | |
download | php-git-fd74024a4940fd8fc10daf9181beebc44c21ca32.tar.gz |
remove compile command
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r-- | phpdbg_prompt.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 0077386bb9..c3971ccef4 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -43,7 +43,6 @@ int yyparse(phpdbg_param_t *stack, yyscan_t scanner); /* {{{ command declarations */ const phpdbg_command_t phpdbg_prompt_commands[] = { PHPDBG_COMMAND_D(exec, "set execution context", 'e', NULL, "s"), - PHPDBG_COMMAND_D(compile, "attempt compilation", 'c', NULL, 0), PHPDBG_COMMAND_D(step, "step through execution", 's', NULL, "b"), PHPDBG_COMMAND_D(next, "continue execution", 'n', NULL, 0), PHPDBG_COMMAND_D(run, "attempt execution", 'r', NULL, "|s"), @@ -376,6 +375,7 @@ PHPDBG_COMMAND(exec) /* {{{ */ php_hash_environment(TSRMLS_C); phpdbg_notice("Set execution context: %s", PHPDBG_G(exec)); + phpdbg_compile(TSRMLS_C); } else { phpdbg_notice("Execution context not changed"); } @@ -392,6 +392,11 @@ int phpdbg_compile(TSRMLS_D) /* {{{ */ { zend_file_handle fh; + if (!PHPDBG_G(exec)) { + phpdbg_error("No execution context"); + return SUCCESS; + } + if (EG(in_execution)) { phpdbg_error("Cannot compile while in execution"); return FAILURE; @@ -414,25 +419,6 @@ int phpdbg_compile(TSRMLS_D) /* {{{ */ return FAILURE; } /* }}} */ -PHPDBG_COMMAND(compile) /* {{{ */ -{ - if (!PHPDBG_G(exec)) { - phpdbg_error("No execution context"); - return SUCCESS; - } - - if (!EG(in_execution)) { - if (PHPDBG_G(ops)) { - phpdbg_error("Destroying previously compiled opcodes"); - phpdbg_clean(0 TSRMLS_CC); - } - } - - phpdbg_compile(TSRMLS_C); - - return SUCCESS; -} /* }}} */ - PHPDBG_COMMAND(step) /* {{{ */ { if (param->num) { |