mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
a4f7863238
commit
a726543364
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276689
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user