svn commit: r276689 - head/contrib/elftoolchain/addr2line
Ed Maste
emaste at FreeBSD.org
Mon Jan 5 04:56:39 UTC 2015
Author: emaste
Date: Mon Jan 5 04:56:38 2015
New Revision: 276689
URL: https://svnweb.freebsd.org/changeset/base/276689
Log:
addr2line: fflush output after each address lookup
Certain tools spawn addr2line and pass addresses one at a time for
resolution.
PR: 195561
Reported by: antoine
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/elftoolchain/addr2line/addr2line.c
Modified: head/contrib/elftoolchain/addr2line/addr2line.c
==============================================================================
--- head/contrib/elftoolchain/addr2line/addr2line.c Mon Jan 5 04:33:39 2015 (r276688)
+++ head/contrib/elftoolchain/addr2line/addr2line.c Mon Jan 5 04:56:38 2015 (r276689)
@@ -399,8 +399,10 @@ main(int argc, char **argv)
for (i = 0; i < argc; i++)
translate(dbg, argv[i]);
else
- while (fgets(line, sizeof(line), stdin) != NULL)
+ while (fgets(line, sizeof(line), stdin) != NULL) {
translate(dbg, line);
+ fflush(stdout);
+ }
dwarf_finish(dbg, &de);
More information about the svn-src-head
mailing list