* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty

|| info_verbose isn't true.
This commit is contained in:
Jim Blandy 2002-11-25 20:01:06 +00:00
parent 97dd3f1856
commit 481d0f4121
2 changed files with 10 additions and 1 deletions

View 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

View 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. */