summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-11-25 20:01:06 +0000
committerJim Blandy <jimb@codesourcery.com>2002-11-25 20:01:06 +0000
commitdb06ebc4670d8a701bd2afd48ff4e2c5f04b1355 (patch)
tree87a200a9b9bd5f535520c5efdbff9f90cf85172e
parent8a6acbbb710bb74a2d24a594fb7a9dd6322bc0ba (diff)
downloadgdb-db06ebc4670d8a701bd2afd48ff4e2c5f04b1355.tar.gz
* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
|| info_verbose isn't true.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symfile.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4ac461c4b37..b48f346e350 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 28c84f9814e..5e0bf8c8726 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -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. */