aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-04 19:57:31 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-04 19:57:31 +0000
commit488919c487a8372cbb3de5909332c4f2b5e19c7e (patch)
tree754919222d987041864ce95898a977c77b156265 /gdb
parent1e182ce8c375de8f86fe00198b07d0331e4c4e0d (diff)
downloadgdb-488919c487a8372cbb3de5909332c4f2b5e19c7e.zip
gdb-488919c487a8372cbb3de5909332c4f2b5e19c7e.tar.gz
gdb-488919c487a8372cbb3de5909332c4f2b5e19c7e.tar.bz2
2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* breakpoint.c (enable_command): Use break instead of continue, and fill in a missing break. (disable_command): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/breakpoint.c10
2 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1311dc0..48c9446 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
+
+ * breakpoint.c (enable_command): Use break instead of continue,
+ and fill in a missing break.
+ (disable_command): Ditto.
+
2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
* inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index cea7405..6f087b3 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -10930,7 +10930,7 @@ disable_command (char *args, int from_tty)
case bp_none:
warning (_("attempted to disable apparently deleted breakpoint #%d?"),
bpt->number);
- continue;
+ break;
case bp_breakpoint:
case bp_tracepoint:
case bp_fast_tracepoint:
@@ -10942,8 +10942,9 @@ disable_command (char *args, int from_tty)
case bp_read_watchpoint:
case bp_access_watchpoint:
disable_breakpoint (bpt);
+ break;
default:
- continue;
+ break;
}
else if (strchr (args, '.'))
{
@@ -11031,7 +11032,7 @@ enable_command (char *args, int from_tty)
case bp_none:
warning (_("attempted to enable apparently deleted breakpoint #%d?"),
bpt->number);
- continue;
+ break;
case bp_breakpoint:
case bp_tracepoint:
case bp_fast_tracepoint:
@@ -11043,8 +11044,9 @@ enable_command (char *args, int from_tty)
case bp_read_watchpoint:
case bp_access_watchpoint:
enable_breakpoint (bpt);
+ break;
default:
- continue;
+ break;
}
else if (strchr (args, '.'))
{