]> granicus.if.org Git - php/commitdiff
help for delete breakpoint
authorkrakjoe <joe.watkins@live.co.uk>
Sun, 24 Nov 2013 12:06:45 +0000 (12:06 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Sun, 24 Nov 2013 12:06:45 +0000 (12:06 +0000)
remove redundant decl

phpdbg_bp.c
phpdbg_bp.h
phpdbg_help.c

index d6252ded001fcaca1b96dbe6a75e3adf50415c97..fdb191b736f1a76c08251ef3112b8391f99da3b7 100644 (file)
@@ -483,10 +483,10 @@ int phpdbg_find_breakpoint(zend_execute_data* execute_data TSRMLS_DC) /* {{{ */
        return FAILURE;
 } /* }}} */
 
-int phpdbg_delete_breakpoint_from_file_llist(void *brake) {
+int phpdbg_delete_breakpoint_from_file_llist(void *brake) { /* {{{ */
        TSRMLS_FETCH();
        return ((phpdbg_breakfile_t*)brake)->id == PHPDBG_G(del_bp_num);
-}
+} /* }}} */
 
 PHPDBG_API void phpdbg_delete_breakpoint(zend_ulong num TSRMLS_DC) /* {{{ */
 {
index 11ad932210a9edec2777085408fe4fd2aadf2e4e..f23904f41264f7a2e9253ddf37dadb8ef7baf838 100644 (file)
@@ -92,7 +92,6 @@ int phpdbg_find_breakpoint_method(zend_op_array* TSRMLS_DC);
 int phpdbg_find_breakpoint_opline(phpdbg_opline_ptr_t TSRMLS_DC);
 int phpdbg_find_breakpoint_opcode(zend_uchar TSRMLS_DC);
 int phpdbg_find_conditional_breakpoint(TSRMLS_D);
-int phpdbg_find_catch(zend_uchar TSRMLS_DC);
 int phpdbg_find_breakpoint(zend_execute_data* TSRMLS_DC);
 
 PHPDBG_API void phpdbg_delete_breakpoint(zend_ulong num TSRMLS_DC);
index 9f56dbc1fd9c70a027e316c8d4368b068922a3a2..3a699d69f05a65dbbac08e63c014cce8da03fec2 100644 (file)
@@ -247,6 +247,10 @@ PHPDBG_HELP(break) /* {{{ */
        phpdbg_writeln("\t%sb O ZEND_ADD", PROMPT);
        phpdbg_writeln("\tWill break on every occurence of the opcode provided");
        phpdbg_writeln(EMPTY);
+       phpdbg_writeln("\t%sbreak del 1", PROMPT);
+       phpdbg_writeln("\t%sb d 1", PROMPT);
+       phpdbg_writeln("\tWill remove the breakpoint with the given identifier");
+       phpdbg_writeln(EMPTY);
        phpdbg_writeln("Note: An address is only valid for the current compilation");
        phpdbg_writeln(EMPTY);
        phpdbg_notice("The parameters enclosed by [] are usually optional, but help avoid ambigious commands");