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 c0deadf..c2f521c 100644 (file)
@@ -1,5 +1,12 @@
 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)
        (ppc_process_record_op63): Add fall-through comment.
 
index 443d1ed..52660bd 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 51d0a26..13556d4 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;