aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-11-14 10:37:55 -0700
committerTom Tromey <tromey@adacore.com>2023-11-14 10:37:55 -0700
commitc748dbd95bf3305539956053c2a25ecea7b442a5 (patch)
tree3cff31e4526960c94e13873ae8b38b65b7f7b311 /gdb/breakpoint.c
parent07b3255c3bae7126a0d679f957788560351eb236 (diff)
downloadfsf-binutils-gdb-c748dbd95bf3305539956053c2a25ecea7b442a5.zip
fsf-binutils-gdb-c748dbd95bf3305539956053c2a25ecea7b442a5.tar.gz
fsf-binutils-gdb-c748dbd95bf3305539956053c2a25ecea7b442a5.tar.bz2
Remove some redundant "break"s
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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index fe09dbc..a6b9b24 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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;
}
}