From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14834 invoked by alias); 24 Aug 2004 19:05:10 -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 14825 invoked from network); 24 Aug 2004 19:05:09 -0000 Received: from unknown (HELO balder.inter.net.il) (192.114.186.15) by sourceware.org with SMTP; 24 Aug 2004 19:05:09 -0000 Received: from zaretski ([80.230.149.106]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id DTT60605 (AUTH halo1); Tue, 24 Aug 2004 22:05:02 +0300 (IDT) Date: Tue, 24 Aug 2004 19:05:00 -0000 From: "Eli Zaretskii" To: Bob Rossi Message-ID: <01c48a0c$Blat.v2.2.2$ba4a7920@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: gdb@sources.redhat.com In-reply-to: <20040824161147.GA17203@white> (message from Bob Rossi on Tue, 24 Aug 2004 12:11:47 -0400) Subject: Re: separating gdb & inferior output Reply-to: Eli Zaretskii References: <20040824161147.GA17203@white> X-SW-Source: 2004-08/txt/msg00339.txt.bz2 > 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'?