Browse Source

help for delete breakpoint

remove redundant decl
pull/550/head
krakjoe 13 years ago
parent
commit
72ffef13a1
  1. 4
      phpdbg_bp.c
  2. 1
      phpdbg_bp.h
  3. 4
      phpdbg_help.c

4
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) /* {{{ */
{

1
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);

4
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");

Loading…
Cancel
Save