This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: MI testsuite to use PTY for inferior
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 01 Aug 2005 23:45:03 +0300
- Subject: Re: MI testsuite to use PTY for inferior
- References: <17131.5769.342629.658975@farnswood.snap.net.nz> <20050730173855.GA21401@white> <17131.64575.780190.163527@farnswood.snap.net.nz> <20050730230309.GA22547@white> <20050731012111.GB13808@nevyn.them.org> <20050731131653.GC22547@white> <20050731153051.GA28158@nevyn.them.org> <20050731212021.GA24144@white> <uack248er.fsf@gnu.org> <20050801113002.GB24853@white> <u7jf54htt.fsf@gnu.org> <200508011901.j71J1i1w026583@elgar.sibelius.xs4all.nl>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.)