2007-01-21 Markus Deuling <deuling@de.ibm.com>

* breakpoint.c (delete_command): Skip redundant loop iterations.
This commit is contained in:
Daniel Jacobowitz 2007-01-21 17:43:12 +00:00
parent 7b9ee6a806
commit 973d738b82
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-01-21 Markus Deuling <deuling@de.ibm.com>
* breakpoint.c (delete_command): Skip redundant loop iterations.
2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
* gdbarch.sh (register_type): Update comment.

View File

@ -7125,7 +7125,10 @@ delete_command (char *arg, int from_tty)
b->type != bp_thread_event &&
b->type != bp_overlay_event &&
b->number >= 0)
breaks_to_delete = 1;
{
breaks_to_delete = 1;
break;
}
}
/* Ask user only if there are some breakpoints to delete. */