* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
[deliverable/binutils-gdb.git] / gdb / annotate.c
index 0a73fb5dcd45bd9d90612b801321350204a6d347..5491ddff3cd7a1ab80393076774677284860a65c 100644 (file)
@@ -22,6 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "value.h"
 #include "target.h"
 #include "gdbtypes.h"
+#include "breakpoint.h"
 \f
 static void print_value_flags PARAMS ((struct type *));
 
@@ -65,7 +66,12 @@ void
 annotate_starting ()
 {
   if (annotation_level > 1)
-    printf_filtered ("\n\032\032starting\n");
+    {
+      printf_filtered ("\n\032\032starting\n");
+      /* The starting annotation needs to appear before any output
+         from the inferior process.  */
+      gdb_flush (gdb_stdout);
+    }
 }
 
 void
@@ -519,3 +525,20 @@ annotate_array_section_end ()
     printf_filtered ("\n\032\032array-section-end\n");
 }
 
+static void
+breakpoint_changed (b)
+     struct breakpoint *b;
+{
+  breakpoints_changed ();
+}
+
+void
+_initialize_annotate ()
+{
+  if (annotation_level > 1)
+    {
+      delete_breakpoint_hook = breakpoint_changed;
+      enable_breakpoint_hook = breakpoint_changed;
+      disable_breakpoint_hook = breakpoint_changed;
+    }
+}
This page took 0.023033 seconds and 4 git commands to generate.