* annotate.c (annotate_starting): Flush output.
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 29 Aug 1994 18:45:35 +0000 (18:45 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 29 Aug 1994 18:45:35 +0000 (18:45 +0000)
gdb/ChangeLog
gdb/annotate.c

index 6911fc4..d465072 100644 (file)
@@ -1,3 +1,7 @@
+Mon Aug 29 11:34:34 1994  Jim Kingdon  (kingdon@cygnus.com)
+
+       * annotate.c (annotate_starting): Flush output.
+
 Sat Aug 27 23:32:43 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
        * symfile.c (symbol_file_add):  Move reinit_frame_cache call to
index 4500923..5491ddf 100644 (file)
@@ -66,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