Add missing "breaks"
authorTom Tromey <tom@tromey.com>
Thu, 19 Apr 2018 20:48:51 +0000 (14:48 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 5 May 2018 04:04:46 +0000 (22:04 -0600)
This adds a "break" to a couple of spots where it was erroneously
omitted.  I think these are the two (potential) real bugs caught by
this series.

2018-05-04  Tom Tromey  <tom@tromey.com>

* mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
Add missing "break".
* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
Add missing "break".

gdb/ChangeLog
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-main.c

index c0deadf4fb19b2bcd979ca726c00a914c29dc09a..c2f521cd1e7f91815a8d1501dad76fc237a01a13 100644 (file)
@@ -1,3 +1,10 @@
+2018-05-04  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
+       Add missing "break".
+       * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
+       Add missing "break".
+
 2018-05-04  Tom Tromey  <tom@tromey.com>
 
        * rs6000-tdep.c (ppc_process_record_op4)
index 443d1ed4183d615e9e0e8c9d870d456034fbcbef..52660bdd498e16181ae681063c379abd7cc558ea 100644 (file)
@@ -245,6 +245,7 @@ mi_cmd_stack_list_locals (const char *command, char **argv, int argc)
            {
            case NO_FRAME_FILTERS:
              raw_arg = oind;
+             break;
            case SKIP_UNAVAILABLE:
              skip_unavailable = 1;
              break;
index 51d0a268c9a69c8ad758f979dbbf9c11ba6ab61c..13556d4d93d13a60f0b621c20436aca8bd78613b 100644 (file)
@@ -2568,6 +2568,7 @@ mi_cmd_trace_frame_collected (const char *command, char **argv, int argc)
          break;
        case REGISTERS_FORMAT:
          registers_format = oarg[0];
+         break;
        case MEMORY_CONTENTS:
          memory_contents = 1;
          break;