aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-09-15 03:02:01 +0000
committerAlan Modra <amodra@gmail.com>2007-09-15 03:02:01 +0000
commit0bc43230d60765d9cc6d0e9bffef91ae6b956843 (patch)
tree3c26e6211eca81b17ea69755d1a5a7b10349f1c6 /bfd
parent8ed77a05dcbf5ee97f11902f25d216ebf5c96e41 (diff)
downloadgdb-0bc43230d60765d9cc6d0e9bffef91ae6b956843.zip
gdb-0bc43230d60765d9cc6d0e9bffef91ae6b956843.tar.gz
gdb-0bc43230d60765d9cc6d0e9bffef91ae6b956843.tar.bz2
* bfd.c (_bfd_default_error_handler): fflush stdout.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/bfd.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ba33533..ce4fc41 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-15 Nick Clifton <nickc@redhat.com>
+
+ * bfd.c (_bfd_default_error_handler): fflush stdout.
+
2007-09-14 Alan Modra <amodra@bigpond.net.au>
* opncls.c (find_separate_debug_file): Ensure bfd_set_error has
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 48cd6b6..a2302f8 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -476,6 +476,9 @@ _bfd_default_error_handler (const char *fmt, ...)
size_t avail = 1000;
char buf[1000];
+ /* PR 4992: Don't interrupt output being sent to stdout. */
+ fflush (stdout);
+
if (_bfd_error_program_name != NULL)
fprintf (stderr, "%s: ", _bfd_error_program_name);
else