3434#include "phpdbg_cmd.h"
3535
3636/* {{{ command declarations */
37- static const phpdbg_command_t phpdbg_prompt_commands [] = {
37+ const phpdbg_command_t phpdbg_prompt_commands [] = {
3838 PHPDBG_COMMAND_D (exec , "set execution context" , 'e' , NULL , 1 ),
3939 PHPDBG_COMMAND_D (compile , "attempt compilation" , 'c' , NULL , 0 ),
4040 PHPDBG_COMMAND_D (step , "step through execution" , 's' , NULL , 1 ),
@@ -1025,49 +1025,6 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
10251025 return ret ;
10261026} /* }}} */
10271027
1028- void phpdbg_print_opline_ex (zend_execute_data * execute_data , HashTable * vars , zend_bool ignore_flags TSRMLS_DC ) /* {{{ */
1029- {
1030- /* force out a line while stepping so the user knows what is happening */
1031- if (ignore_flags ||
1032- (!(PHPDBG_G (flags ) & PHPDBG_IS_QUIET ) ||
1033- (PHPDBG_G (flags ) & PHPDBG_IS_STEPPING ) ||
1034- (PHPDBG_G (oplog )))) {
1035-
1036- zend_op * opline = execute_data -> opline ;
1037- char * decode = phpdbg_decode_opline (execute_data -> op_array , opline , vars TSRMLS_CC );
1038-
1039- if (ignore_flags ||
1040- (!(PHPDBG_G (flags ) & PHPDBG_IS_QUIET ) ||
1041- (PHPDBG_G (flags ) & PHPDBG_IS_STEPPING ))) {
1042- /* output line info */
1043- phpdbg_notice ("#%- 5lu %16p %-30s %s %s" ,
1044- opline -> lineno ,
1045- opline ,
1046- phpdbg_decode_opcode (opline -> opcode ),
1047- decode ,
1048- execute_data -> op_array -> filename ? execute_data -> op_array -> filename : "unknown" );
1049- }
1050-
1051- if (!ignore_flags && PHPDBG_G (oplog )) {
1052- phpdbg_log_ex (PHPDBG_G (oplog ), "#%- 5lu %16p %-30s %s %s" ,
1053- opline -> lineno ,
1054- opline ,
1055- phpdbg_decode_opcode (opline -> opcode ),
1056- decode ,
1057- execute_data -> op_array -> filename ? execute_data -> op_array -> filename : "unknown" );
1058- }
1059-
1060- if (decode ) {
1061- free (decode );
1062- }
1063- }
1064- } /* }}} */
1065-
1066- void phpdbg_print_opline (zend_execute_data * execute_data , zend_bool ignore_flags TSRMLS_DC ) /* {{{ */
1067- {
1068- phpdbg_print_opline_ex (execute_data , NULL , ignore_flags TSRMLS_CC );
1069- } /* }}} */
1070-
10711028void phpdbg_clean (zend_bool full TSRMLS_DC ) /* {{{ */
10721029{
10731030 /* this is implicitly required */
@@ -1084,12 +1041,6 @@ void phpdbg_clean(zend_bool full TSRMLS_DC) /* {{{ */
10841041 }
10851042} /* }}} */
10861043
1087- void phpdbg_sigint_handler (int signo )
1088- {
1089- TSRMLS_FETCH ();
1090- PHPDBG_G (flags ) |= PHPDBG_IS_SIGNALED ;
1091- }
1092-
10931044static inline zend_execute_data * phpdbg_create_execute_data (zend_op_array * op_array , zend_bool nested TSRMLS_DC ) /* {{{ */
10941045{
10951046#if PHP_VERSION_ID >= 50500
0 commit comments