This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] breakpoint.c, create_breakpoint, document that the case statement falls through.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 02 Mar 2011 16:42:01 -0800
- Subject: [RFA] breakpoint.c, create_breakpoint, document that the case statement falls through.
This is what it does, and has done for >5 years, so I assume it is what
it should do...
Agree?
2011-03-02 Michael Snyder <msnyder@vmware.com>
* breakpoint.c (create_breakpoint): 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 3 Mar 2011 00:38:01 -0000
@@ -7843,6 +7843,7 @@ create_breakpoint (struct gdbarch *gdbar
default:
throw_exception (e);
}
+ /* FALLTHROUGH */
default:
if (!sals.nelts)
return 0;