From: krakjoe Date: Sun, 24 Nov 2013 12:06:45 +0000 (+0000) Subject: help for delete breakpoint X-Git-Tag: php-5.6.0alpha1~110^2~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72ffef13a113a9f72eb39d5f8487ba0b646505f1;p=php help for delete breakpoint remove redundant decl --- diff --git a/phpdbg_bp.c b/phpdbg_bp.c index d6252ded00..fdb191b736 100644 --- a/phpdbg_bp.c +++ b/phpdbg_bp.c @@ -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) /* {{{ */ { diff --git a/phpdbg_bp.h b/phpdbg_bp.h index 11ad932210..f23904f412 100644 --- a/phpdbg_bp.h +++ b/phpdbg_bp.h @@ -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); diff --git a/phpdbg_help.c b/phpdbg_help.c index 9f56dbc1fd..3a699d69f0 100644 --- a/phpdbg_help.c +++ b/phpdbg_help.c @@ -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");