Re: MI testsuite to use PTY for inferior

Eli Zaretskii
2005-08-02T20:46:26Z

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