aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-26 21:50:41 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-26 21:50:41 +0000
commitcb969d61418104fe280fb0b6cdc210f975e28f16 (patch)
tree86e4f4a9142dba76e5b2288cfbe33c7ad0a5ebaa /gdb
parentf2c4ead5169122a145587efa9798d4b4bd45564b (diff)
downloadgdb-cb969d61418104fe280fb0b6cdc210f975e28f16.zip
gdb-cb969d61418104fe280fb0b6cdc210f975e28f16.tar.gz
gdb-cb969d61418104fe280fb0b6cdc210f975e28f16.tar.bz2
2011-02-26 Michael Snyder <msnyder@vmware.com>
* expprint.c (dump_subexp_body_standard): Document that case statement is meant to fall through.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/expprint.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3422ce6..61797e1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2011-02-26 Michael Snyder <msnyder@vmware.com>
+ * expprint.c (dump_subexp_body_standard): Document that case
+ statement is meant to fall through.
+
* amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
dead if statement. Condition can't be false.
diff --git a/gdb/expprint.c b/gdb/expprint.c
index a6c13f9..a52dee3 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -767,6 +767,7 @@ dump_subexp_body_standard (struct expression *exp,
case TERNOP_SLICE:
case TERNOP_SLICE_COUNT:
elt = dump_subexp (exp, stream, elt);
+ /* FALL THROUGH */
case BINOP_ADD:
case BINOP_SUB:
case BINOP_MUL:
@@ -803,6 +804,7 @@ dump_subexp_body_standard (struct expression *exp,
case STRUCTOP_MEMBER:
case STRUCTOP_MPTR:
elt = dump_subexp (exp, stream, elt);
+ /* FALL THROUGH */
case UNOP_NEG:
case UNOP_LOGICAL_NOT:
case UNOP_COMPLEMENT: