This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI testsuite to use PTY for inferior


> Date: Mon, 1 Aug 2005 16:52:42 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, gdb-patches@sources.redhat.com
> 
> You can't fix it via termios; it isn't a property of the terminal (and
> we don't have a terminal, anyway).  It's set by the application startup
> code based on the result of isatty() on fd 0, usually - at least both
> mingw32 and GNU/Linux do it this way.

If this is the buffering you are worried with, it can be fixed with a
call to setvbuf, right?

> The default for non-terminals is block buffered, which if you're
> waiting for output is really annoying.

We could fflush and fsync the MI output stream, if this is the main
annoyance.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]