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 21:01:44 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: gdb-patches@sources.redhat.com
> 
> Terminals are quite different from "normal" pipes.  For example stdio
> is line buffered for (pseudo) terminals but normally buffered for
> other streams.

I'm quite sure I've heard this once or twice before ;-)

Seriously, though: buffering and other aspects of I/O relevant to
terminals can be fixed by suitable calls to termios or similar
functions.

In addition, a file handle redirected to the pipe vis-a-vis a FE
doesn't necessarily need to be line buffered.

So I don't see this as a big problem.  (At least in theory; I don't
think I will have enough free time to work on this for the Windows
port anytime soon.)


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