diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index b73305ad19c..11caae0d077 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -877,6 +877,9 @@ which its expression is valid.\n", b->number); case bp_catch_exec : val = target_insert_exec_catchpoint (inferior_pid); break; + default: + warning ("GDB bug: breakpoint.c (insert_breakpoints): enclosing `if' does not protect `switch'"); + break; } if (val < 0) { @@ -1191,6 +1194,9 @@ remove_breakpoint (b, is) case bp_catch_exec : val = target_remove_exec_catchpoint (inferior_pid); break; + default: + warning ("GDB bug: breakpoint.c (remove_breakpoint): enclosing `if' does not protect `switch'"); + break; } if (val) return val; |