]> granicus.if.org Git - php/commitdiff
- Renamed breakpoint find functions
authorFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 20:06:19 +0000 (18:06 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 10 Nov 2013 20:06:19 +0000 (18:06 -0200)
phpdbg_bp.c
phpdbg_bp.h
phpdbg_prompt.c

index a531f4f1af3408eef38737f7725e9090ea24404a..2db30d33663d34163b93258d45ed9677009a8a7b 100644 (file)
@@ -103,7 +103,7 @@ void phpdbg_set_breakpoint_symbol(const char *expr, const char *opline_num_pos T
        zend_llist_add_element(break_sym_ptr, &new_break);
 } /* }}} */
 
-int phpdbg_breakpoint_file(zend_op_array *op_array TSRMLS_DC) /* {{{ */
+int phpdbg_find_breakpoint_file(zend_op_array *op_array TSRMLS_DC) /* {{{ */
 {
        size_t name_len = strlen(op_array->filename);
        zend_llist *break_list;
@@ -126,7 +126,7 @@ int phpdbg_breakpoint_file(zend_op_array *op_array TSRMLS_DC) /* {{{ */
        return FAILURE;
 } /* }}} */
 
-int phpdbg_breakpoint_symbol(zend_function *fbc TSRMLS_DC) /* {{{ */
+int phpdbg_find_breakpoint_symbol(zend_function *fbc TSRMLS_DC) /* {{{ */
 {
        const char *fname;
        zend_llist *break_list;
index c6d057c2806627bb679e504b07dca01d4f691787..e8cb84b92e60c8c48684f4598821926d941b4731 100644 (file)
@@ -41,4 +41,7 @@ typedef struct _phpdbg_breaksymbol_t {
 void phpdbg_set_breakpoint_file(const char*, const char* TSRMLS_DC);
 void phpdbg_set_breakpoint_symbol(const char*, const char* TSRMLS_DC);
 
+int phpdbg_find_breakpoint_file(zend_op_array* TSRMLS_DC);
+int phpdbg_find_breakpoint_symbol(zend_function* TSRMLS_DC);
+
 #endif /* PHPDBG_BP_H */
index cd432fbf612fb9d917b45db649b31b386785b5d4..fc559dd2df5021b36d00fd3fa426ea84c47c126b 100644 (file)
@@ -254,7 +254,7 @@ static PHPDBG_COMMAND(help) /* {{{ */
                        ++help_command;
                }
        } else {
-               if (phpdbg_do_cmd(phpdbg_help_commands, expr, expr_len TSRMLS_CC) == FAILURE) {
+               if (phpdbg_do_cmd(phpdbg_help_commands, (char*)expr, expr_len TSRMLS_CC) == FAILURE) {
                        printf("failed to find help command: %s\n", expr);
                }
        }
@@ -334,7 +334,8 @@ int phpdbg_interactive(int argc, char **argv TSRMLS_DC) /* {{{ */
        return SUCCESS;
 } /* }}} */
 
-static void phpdbg_print_opline(zend_execute_data *execute_data TSRMLS_DC) { /* {{{ */
+static void phpdbg_print_opline(zend_execute_data *execute_data TSRMLS_DC) /* {{{ */
+{
     zend_op *opline = execute_data->opline;
 
     printf("[OPLINE: %p:%s]\n", opline, phpdbg_decode_opcode(opline->opcode));
@@ -361,7 +362,7 @@ zend_vm_enter:
         phpdbg_print_opline(execute_data TSRMLS_CC);
 
         if (PHPDBG_G(has_file_bp)
-                       && phpdbg_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) {
+                       && phpdbg_find_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) {
                        while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) {
                                continue;
                        }
@@ -369,7 +370,7 @@ zend_vm_enter:
 
                if (PHPDBG_G(has_sym_bp)
                        && (execute_data->opline->opcode == ZEND_DO_FCALL || execute_data->opline->opcode == ZEND_DO_FCALL_BY_NAME)
-                       && phpdbg_breakpoint_symbol(execute_data->function_state.function TSRMLS_CC) == SUCCESS) {
+                       && phpdbg_find_breakpoint_symbol(execute_data->function_state.function TSRMLS_CC) == SUCCESS) {
                        while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) {
                                continue;
                        }