From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3103 invoked by alias); 1 Aug 2005 19:25:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3067 invoked by uid 22791); 1 Aug 2005 19:25:52 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 01 Aug 2005 19:25:52 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1Dzfuz-0004eJ-LV; Mon, 01 Aug 2005 15:25:45 -0400 Date: Mon, 01 Aug 2005 19:25:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: eliz@gnu.org, gdb-patches@sources.redhat.com Subject: Re: MI testsuite to use PTY for inferior Message-ID: <20050801192545.GA17803@nevyn.them.org> Mail-Followup-To: Mark Kettenis , eliz@gnu.org, gdb-patches@sources.redhat.com References: <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> <20050801113002.GB24853@white> <200508011901.j71J1i1w026583@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508011901.j71J1i1w026583@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00028.txt.bz2 On Mon, Aug 01, 2005 at 09:01:44PM +0200, Mark Kettenis wrote: > Date: Mon, 01 Aug 2005 21:45:18 +0300 > From: Eli Zaretskii > > (Shrug) What about redirecting one of the streams to another file > handle? I think any modern platform will support this. We could, for > example, make this an option (it could be on by default if PTYs aren't > supported). > > Terminals are quite different from "normal" pipes. For example stdio > is line buffered for (pseudo) terminals but normally buffered for > other streams. So this affects basically any program. Yes, but I think Eli's still basically right here: if you don't have PTYs, then preserving terminal semantics isn't terribly important. The buffering gets annoying on Windows because some applications use Windows library calls to detect a console and control buffering accordingly. But we can't handle that, so I wouldn't fret about it too much. -- Daniel Jacobowitz CodeSourcery, LLC