From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17166 invoked by alias); 24 Aug 2004 19:09:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17156 invoked from network); 24 Aug 2004 19:09:15 -0000 Received: from unknown (HELO lakermmtao08.cox.net) (68.230.240.31) by sourceware.org with SMTP; 24 Aug 2004 19:09:15 -0000 Received: from white ([68.9.64.121]) by lakermmtao08.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040824190914.CVVW28752.lakermmtao08.cox.net@white>; Tue, 24 Aug 2004 15:09:14 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1BzgfQ-0004cx-00; Tue, 24 Aug 2004 15:09:12 -0400 Date: Tue, 24 Aug 2004 19:09:00 -0000 From: Bob Rossi To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: separating gdb & inferior output Message-ID: <20040824190912.GB17542@white> Mail-Followup-To: Eli Zaretskii , gdb@sources.redhat.com References: <20040824161147.GA17203@white> <01c48a0c$Blat.v2.2.2$ba4a7920@zahav.net.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c48a0c$Blat.v2.2.2$ba4a7920@zahav.net.il> User-Agent: Mutt/1.3.28i X-SW-Source: 2004-08/txt/msg00341.txt.bz2 On Tue, Aug 24, 2004 at 10:00:11PM +0300, Eli Zaretskii wrote: > > Date: Tue, 24 Aug 2004 12:11:47 -0400 > > From: Bob Rossi > > > > I have the feeling the tty command does not port properly everywhere > > that GDB does (mingw, cygwin). I've personally had problems with it on > > some version of Windows with cygwin. Besides, figuring out how to open a > > tty on different machines is a real pain. > > > > Is there a better, more portable way, to accomplish the same task? > > What can be more portable than file descriptor redirection? Even > MS-DOS supports it. > > > I was thinking of having GDB output it's output to a UNIX or TCP/IP > > port. How about a FIFO(portable?)? Any other ideas? > > Both are less portable than redirection, IMHO. FIFOs are > Unix-specific, and ports will not work on a system without a network > interface. > > Perhaps you could state what are the problems with `tty'? O, you need to actually get a new tty. Windows doesn't have the concept of a tty. File descriptor redirection is fine. Maybe we could have something like gdb --i=mi --out_fd=n where n is the descriptor you plan on reading from GDB. What does it mean to open a 'tty' on a windows platform, or some other non-unix platform? Thanks, Bob Rossi