diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-21 17:43:12 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-21 17:43:12 +0000 |
commit | 973d738b8201a858c054e355e3652dfda4b61043 (patch) | |
tree | 623678a7f8fe6bc628ddc0b6de1e343b3225142b /gdb/breakpoint.c | |
parent | 7b9ee6a80648a8e8bb30090d76035605299f805d (diff) | |
download | gdb-973d738b8201a858c054e355e3652dfda4b61043.zip gdb-973d738b8201a858c054e355e3652dfda4b61043.tar.gz gdb-973d738b8201a858c054e355e3652dfda4b61043.tar.bz2 |
2007-01-21 Markus Deuling <deuling@de.ibm.com>
* breakpoint.c (delete_command): Skip redundant loop iterations.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index b55e924..2a5e81f 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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. */ |