>> 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




_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to