james@bigtex.cactus.org (James Van Artsdalen) (02/12/90)
When running gdb under emacs through a pty, stdout on my system is
buffered. gdb needs to flush stdout.
/usr3/src/gdb-3.5/readline> rcsdiff -c readline.c
RCS file: RCS/readline.c,v
retrieving revision 1.1
diff -c -r1.1 readline.c
*** /tmp/,RCSt1a05761 Sun Feb 11 13:39:00 1990
--- readline.c Thu Feb 8 23:00:40 1990
***************
*** 304,311 ****
if (!readline_echoing_p)
{
! if (rl_prompt)
fprintf (out_stream, "%s", rl_prompt);
}
else
{
--- 304,313 ----
if (!readline_echoing_p)
{
! if (rl_prompt) {
fprintf (out_stream, "%s", rl_prompt);
+ fflush (out_stream);
+ }
}
else
{
/usr3/src/gdb-3.5/readline>
--
James R. Van Artsdalen james@bigtex.cactus.org "Live Free or Die"
Dell Computer Co 9505 Arboretum Blvd Austin TX 78759 512-338-8789