cplus-dem.c tiny patch
Andrew Haley
aph@pasanda.cygnus.co.uk
Fri Jul 7 04:16:00 GMT 2000
If a process sends an address followed by a newline to c++filt and
then waits for a symbol string terminated by a newline it may wait
forever; c++filt doesn't flush its output buffer before going back to
waiting for input.
Andrew.
2000-07-07 Andrew Haley <aph@cygnus.com>
* cplus-dem.c (main): fflush() after emitting last char before
waiting for input.
Index: cplus-dem.c
===================================================================
RCS file: /cvs/src/src/libiberty/cplus-dem.c,v
retrieving revision 1.4
diff -u -p -r1.4 cplus-dem.c
--- cplus-dem.c 2000/06/15 20:56:25 1.4
+++ cplus-dem.c 2000/07/07 11:13:35
@@ -4772,6 +4772,7 @@ main (argc, argv)
if (c == EOF)
break;
putchar (c);
+ fflush (stdout);
}
}
More information about the Binutils
mailing list