import gdb-1999-06-14 snapshot
[deliverable/binutils-gdb.git] / gdb / breakpoint.c
index 30e94edfbb47a534af16f8129c0aa12ad0f3b337..11caae0d07702f2f7b98234c73e2bd70d62cc27a 100644 (file)
@@ -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;
@@ -2713,6 +2719,7 @@ breakpoint_1 (bnum, allflag)
   static char bpenables[] = "nyn";
   char wrap_indent[80];
 
+
   ALL_BREAKPOINTS (b)
     if (bnum == -1
        || bnum == b->number)
@@ -2928,7 +2935,7 @@ breakpoint_1 (bnum, allflag)
 
            while (l)
              {
-               print_command_line (l, 4);
+               print_command_line (l, 4, gdb_stdout);
                l = l->next;
              }
          }
This page took 0.023113 seconds and 4 git commands to generate.