From: Jim Blandy Date: Mon, 25 Nov 2002 20:01:06 +0000 (+0000) Subject: * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=481d0f41211d103b0a6ac1e8ed80904d532a03f0;p=binutils-gdb.git * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty || info_verbose isn't true. --- 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 + + * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty + || info_verbose isn't true. + 2002-11-24 Andrew Cagney * 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. */