2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 4 Mar 2011 19:57:31 +0000 (19:57 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 4 Mar 2011 19:57:31 +0000 (19:57 +0000)
* breakpoint.c (enable_command): Use break instead of continue,
and fill in a missing break.
(disable_command): Ditto.

gdb/ChangeLog
gdb/breakpoint.c

index 1311dc0d1338d7a17726465a90ffc33a55346df9..48c9446c4b668cd64c37122a0d984d5097feae0b 100644 (file)
@@ -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.
index cea74054f088ac7838a354de47107177183578ca..6f087b3c65d26e43e3e661cc0dca12d58f36984d 100644 (file)
@@ -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, '.'))
     {