* 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 4ac461c4b3774468d894d82d662d7c0d5dcae1df..b48f346e350020099cb1199a1cdd2bfd21a4936e 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 28c84f9814ee78d660950fc58779c421c0cc3bda..5e0bf8c87262b76e8ebfc4b589148ebb258f2d62 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. */