bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]: machine interface not flushing properly


From: Andrew Cagney
Subject: Re: [PATCH]: machine interface not flushing properly
Date: Thu, 12 Jul 2001 01:40:52 -0400
User-agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.2) Gecko/20010707

This bug has me puzzled for two reasons:

I took a deeper look into it, it confused me some too.



o       I was sure, for MI we turned
buffering off.  (Perhaps it
was only input buffering)


Yes, mi_console_file_new() creates a ui_file that will flush on a newline, but
stdio_fileopen() creates one that will not, at least when it is writing to a
pipe rather than a terminal (see mi-main.c:mi_command_loop() where these are
created)


Ah, yes.

The testsuite works as that uses a pty (line buffered) and I suspect the clients I know about were also set up to do the same.

I'll add a flush after every ``(gdb) \n''.  Hmm, just like your patch :-)

        Andrew






reply via email to

[Prev in Thread] Current Thread [Next in Thread]