From 973d738b8201a858c054e355e3652dfda4b61043 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 21 Jan 2007 17:43:12 +0000 Subject: [PATCH] 2007-01-21 Markus Deuling * breakpoint.c (delete_command): Skip redundant loop iterations. --- gdb/ChangeLog | 4 ++++ gdb/breakpoint.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5589609c788..c4524ef0531 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-01-21 Markus Deuling + + * breakpoint.c (delete_command): Skip redundant loop iterations. + 2007-01-21 Daniel Jacobowitz * gdbarch.sh (register_type): Update comment. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index b55e9249ff1..2a5e81f7764 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. */ -- 2.30.2