aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2016-11-09 15:04:29 +0000
committerEd Maste <emaste@FreeBSD.org>2016-11-09 15:04:29 +0000
commita402c1e54f92f42f2e0690ca182e8320c520dd5d (patch)
treeba9e723ea568a2ed89c406f9865083173c8ad818 /contrib/elftoolchain
parent2b064d4653e8dbe4b93b6ee7cc967b9b51810e3f (diff)
downloadsrc-a402c1e54f92f42f2e0690ca182e8320c520dd5d.tar.gz
src-a402c1e54f92f42f2e0690ca182e8320c520dd5d.zip
c++filt: flush output after newline
Some tools spawn c++filt and pass it a single line at a time for demangling. This is akin to r276689 for addr2line. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=308465
Diffstat (limited to 'contrib/elftoolchain')
-rw-r--r--contrib/elftoolchain/cxxfilt/cxxfilt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/elftoolchain/cxxfilt/cxxfilt.c b/contrib/elftoolchain/cxxfilt/cxxfilt.c
index c6d737a05267..f471a5a7f552 100644
--- a/contrib/elftoolchain/cxxfilt/cxxfilt.c
+++ b/contrib/elftoolchain/cxxfilt/cxxfilt.c
@@ -188,6 +188,8 @@ main(int argc, char **argv)
if (c == EOF)
break;
putchar(c);
+ if (c == '\n')
+ fflush(stdout);
} else {
if ((size_t) p >= sizeof(buf) - 1)
warnx("buffer overflowed");