svn commit: r308465 - head/contrib/elftoolchain/cxxfilt
Ed Maste
emaste at FreeBSD.org
Wed Nov 9 15:04:30 UTC 2016
Author: emaste
Date: Wed Nov 9 15:04:29 2016
New Revision: 308465
URL: https://svnweb.freebsd.org/changeset/base/308465
Log:
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
Modified:
head/contrib/elftoolchain/cxxfilt/cxxfilt.c
Modified: head/contrib/elftoolchain/cxxfilt/cxxfilt.c
==============================================================================
--- head/contrib/elftoolchain/cxxfilt/cxxfilt.c Wed Nov 9 08:57:59 2016 (r308464)
+++ head/contrib/elftoolchain/cxxfilt/cxxfilt.c Wed Nov 9 15:04:29 2016 (r308465)
@@ -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");
More information about the svn-src-all
mailing list