aboutsummaryrefslogtreecommitdiff
path: root/binutils/cxxfilt.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2005-11-17 16:58:27 +0000
committerAndrew Haley <aph@redhat.com>2005-11-17 16:58:27 +0000
commit02aec879c3f740fd190b508f05b1ab9d647382c7 (patch)
tree0b30ebc4e67bd75b46803b290c485477c82aef0b /binutils/cxxfilt.c
parented1f044ac6423184b2e2b8f805ddc4f76ea1256c (diff)
downloadgdb-02aec879c3f740fd190b508f05b1ab9d647382c7.zip
gdb-02aec879c3f740fd190b508f05b1ab9d647382c7.tar.gz
gdb-02aec879c3f740fd190b508f05b1ab9d647382c7.tar.bz2
2005-11-17 Andrew Haley <aph@redhat.com>
* cxxfilt.c (main): Flush ouput at newline.
Diffstat (limited to 'binutils/cxxfilt.c')
-rw-r--r--binutils/cxxfilt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/cxxfilt.c b/binutils/cxxfilt.c
index e1ce982..a8ec43b 100644
--- a/binutils/cxxfilt.c
+++ b/binutils/cxxfilt.c
@@ -278,6 +278,8 @@ main (int argc, char **argv)
/* Echo the whitespace characters so that the output looks
like the input, only with the mangled names demangled. */
putchar (c);
+ if (c == '\n')
+ fflush (stdout);
}
fflush (stdout);