This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
cplus-dem.c tiny patch
- To: binutils at sourceware dot cygnus dot com
- Subject: cplus-dem.c tiny patch
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 7 Jul 2000 11:16:52 -0000
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);
}
}