2007-01-21 Markus Deuling <deuling@de.ibm.com>
authorDaniel Jacobowitz <drow@false.org>
Sun, 21 Jan 2007 17:43:12 +0000 (17:43 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 21 Jan 2007 17:43:12 +0000 (17:43 +0000)
* breakpoint.c (delete_command): Skip redundant loop iterations.

gdb/ChangeLog
gdb/breakpoint.c

index 5589609c788f243bd1c4fb37f98e6a07add85113..c4524ef05311b72bfdeff9850965a8bc17dc094d 100644 (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.
index b55e9249ff1a1c2e905332786967f9156a00404e..2a5e81f7764f6fdb3a52744d2ed3c4f2712061d3 100644 (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.  */