From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20681 invoked by alias); 1 Aug 2005 01:53:35 -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 20662 invoked by uid 22791); 1 Aug 2005 01:53:32 -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 01:53:32 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DzPUg-0004Yg-Pa for gdb-patches@sources.redhat.com; Sun, 31 Jul 2005 21:53:30 -0400 Date: Mon, 01 Aug 2005 01:53:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: MI testsuite to use PTY for inferior Message-ID: <20050801015330.GE30901@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050731212021.GA24144@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00001.txt.bz2 On Sun, Jul 31, 2005 at 05:20:21PM -0400, Bob Rossi wrote: > What is GDB's stance on supporting target's via GDB/MI that can not support > creating TTY's? Off the top of my head, I don't think it makes sense to > support these targets. You can not write a reliable FE under theses > circumstances. The inferior can spew out anything it chooses, including > partial MI fragments (if inferior == GDB). > > > - As far as I know, native Win32 targets can't use PTYs: > > http://world.std.com/~jmhart/critcom.htm#UNIX%20Pseudoterminal > > So, they'll probably need something different. > > In this scenario, I think Cygwin is the answer. Or use GDB/MI with an > inferior program that doesn't output anything to the terminal. That's probably what usually happens. I don't know. I can't say it's a priority for me. > > - Remote targets that provide output currently aren't redirected onto > > the PTY; instead they'll appear interleaved, just like before. > > In this scenario, I'm guessing from the sound of it that GDB just hasn't > added support for this yet. So it's a GDB bug, right? I could look into > this if I had some direction. I don't know. What do you want it to do? GDB to set up a fake terminal and push output to it? Might make sense, might not, haven't thought about it. > > Also, Andrew pretty specifically asked you to leave the mi2-* tests > > alone for this change. > > Well, he definatly was against it at first, and then I thought maybe he > was changing his mind, > > http://sources.redhat.com/ml/gdb-patches/2005-02/msg00110.html I don't think Andrew's concern in that message is related, but you could ask him. In any case I think that this is yet another way in which we ought to leave the MI2 tests alone. -- Daniel Jacobowitz CodeSourcery, LLC