aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-04-05 16:01:36 -0600
committerTom Tromey <tom@tromey.com>2018-05-04 22:04:46 -0600
commitda0e15638de59238ad811cdc3cc1d1a7803829c7 (patch)
tree85abeedbe2dde94720f9e6c113587abd3fbe081e
parent0019cd49ca954c03737cef3a8ee60c233d081d35 (diff)
downloadgdb-da0e15638de59238ad811cdc3cc1d1a7803829c7.zip
gdb-da0e15638de59238ad811cdc3cc1d1a7803829c7.tar.gz
gdb-da0e15638de59238ad811cdc3cc1d1a7803829c7.tar.bz2
Add fall-through comment to i386-tdep.c
This adds a fall-through comment in i386-tdep.c. I was not sure what to do here, so I elected to preserve the status quo. In review, John Baldwin pointed out that: "I believe this is correct based on the diff that added the special cases for xgetbv and xsetbv as previously ldgt and lidt were treated the same". gdb/ChangeLog 2018-05-04 Tom Tromey <tom@tromey.com> * i386-tdep.c (i386_process_record): Add fall-through comment.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i386-tdep.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8e767c0..aad7830 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2018-05-04 Tom Tromey <tom@tromey.com>
+ * i386-tdep.c (i386_process_record): Add fall-through comment.
+
+2018-05-04 Tom Tromey <tom@tromey.com>
+
* stabsread.c (define_symbol) <case 'p'>: Add fall-through
comment.
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index b359254..646f305 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -7130,6 +7130,7 @@ Do you want to stop the program?"),
else if (ir.rm == 1)
break;
}
+ /* Fall through. */
case 3: /* lidt */
if (ir.mod == 3)
{