diff options
author | Alan Modra <amodra@gmail.com> | 2011-01-14 12:37:17 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-01-14 12:37:17 +0000 |
commit | e922bcabdffb3f36677c587e5ff04e90488837b6 (patch) | |
tree | f0be6e42e7aef43d6d5b02b47d1e10db511287e5 /ld/plugin.c | |
parent | 4a97a0e54cba4caa5d994260f9c8ac9548628790 (diff) | |
download | gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.zip gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.tar.gz gdb-e922bcabdffb3f36677c587e5ff04e90488837b6.tar.bz2 |
* ldmain.c (main): Flush stdout before and stderr after printing
message.
* ldmisc.c (einfo): Similarly.
* plugin.c (message): Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/xtensaelf.em: Likewise.
* emulparams/elf32mcore.sh: Use einfo rather than printf.
* emultempl/beos.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 10314a4..05379b8 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -1,5 +1,5 @@ /* Plugin control for the GNU linker. - Copyright 2010 Free Software Foundation, Inc. + Copyright 2010, 2011 Free Software Foundation, Inc. This file is part of the GNU Binutils. @@ -596,7 +596,9 @@ message (int level, const char *format, ...) char *newfmt = ACONCAT ((level == LDPL_FATAL ? "%P%F: " : "%P%X: ", format, "\n", NULL)); + fflush (stdout); vfinfo (stderr, newfmt, args, TRUE); + fflush (stderr); } break; } |