Remove some redundant "break"s
authorTom Tromey <tromey@adacore.com>
Tue, 14 Nov 2023 17:37:55 +0000 (10:37 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 14 Nov 2023 17:37:55 +0000 (10:37 -0700)
I found some "break" statements that follow "return" or a call to a
noreturn function.  These aren't needed, and the compiler would warn
if they were.  So, this patch removes them.

Tested by rebuilding.

gdb/breakpoint.c

index fe09dbcbeee3ae92fc987586fd1fe8a934bb288c..a6b9b2402edb42b2c9d9183e0c105b00886eba97 100644 (file)
@@ -4977,13 +4977,11 @@ print_bp_stop_message (bpstat *bs)
     case print_it_noop:
       /* Nothing should be printed for this bpstat entry.  */
       return PRINT_UNKNOWN;
-      break;
 
     case print_it_done:
       /* We still want to print the frame, but we already printed the
         relevant messages.  */
       return PRINT_SRC_AND_LOC;
-      break;
 
     case print_it_normal:
       {
@@ -4997,11 +4995,9 @@ print_bp_stop_message (bpstat *bs)
        /* Normal case.  Call the breakpoint's print_it method.  */
        return b->print_it (bs);
       }
-      break;
 
     default:
       internal_error (_("print_bp_stop_message: unrecognized enum value"));
-      break;
     }
 }