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
This commit is contained in:
Ed Maste 2015-01-05 04:56:38 +00:00
parent a4f7863238
commit a726543364
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276689

View File

@ -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);