This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] breakpoint.c, enable_command, missing break statement.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 04 Mar 2011 10:49:21 -0800
- Subject: [RFA] breakpoint.c, enable_command, missing break statement.
I'm not entirely sure what to do with this one.
It clearly falls through, and it works as is, so the least change
is just to comment it.
2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* breakpoint.c (enable_command): Document that case falls through.
Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.546
diff -u -p -u -p -r1.546 breakpoint.c
--- breakpoint.c 1 Mar 2011 02:16:56 -0000 1.546
+++ breakpoint.c 4 Mar 2011 18:45:43 -0000
@@ -11042,6 +11042,7 @@ enable_command (char *args, int from_tty
case bp_read_watchpoint:
case bp_access_watchpoint:
enable_breakpoint (bpt);
+ /* FALLTHROUGH */
default:
continue;
}