This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MI testsuite to use PTY for inferior
On Tue, Aug 02, 2005 at 11:45:20PM +0300, Eli Zaretskii wrote:
> > Date: Mon, 1 Aug 2005 23:50:20 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb-patches@sources.redhat.com
> >
> > Yes, but the problem's that the buffering is in the program being
> > debugged. It's not the buffering of the GDB MI stream that's the
> > problem, but the fact that the stdout of the program you're debugging
> > would suddenly become block buffered instead of line buffered, if you
> > fed it to a pipe when it expects a TTY.
>
> This started as a discussion how to separate MI output from the
> debuggee's. For that, I suggested to redirect MI's output (_not_ the
> debuggee's) to a different file handle. That should not change the
> buffering of the debuggee's stdout in any way. While the problem you
> mention is real, it has nothing to do with separation of these two
> streams: if sending the program's output to a pipe changes its
> buffering, we already have that annoyance on Windows.
Ah! Thank you, I misunderstood your solution. This is a very
interesting idea indeed.
--
Daniel Jacobowitz
CodeSourcery, LLC