* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
authorJim Blandy <jimb@codesourcery.com>
Mon, 25 Nov 2002 20:01:06 +0000 (20:01 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 25 Nov 2002 20:01:06 +0000 (20:01 +0000)
|| info_verbose isn't true.

gdb/ChangeLog
gdb/symfile.c

index 4ac461c..b48f346 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-25  Jim Blandy  <jimb@redhat.com>
+
+       * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
+       || info_verbose isn't true.
+
 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
index 28c84f9..5e0bf8c 100644 (file)
@@ -907,10 +907,14 @@ symbol_file_add (char *name, int from_tty, struct section_addr_info *addrs,
       else
        {
          printf_filtered ("done.\n");
-         gdb_flush (gdb_stdout);
        }
     }
 
+  /* We print some messages regardless of whether 'from_tty ||
+     info_verbose' is true, so make sure they go out at the right
+     time.  */
+  gdb_flush (gdb_stdout);
+
   if (objfile->sf == NULL)
     return objfile;    /* No symbols. */