This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: separating gdb & inferior output
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: Bob Rossi <bob at brasko dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 24 Aug 2004 22:00:11 +0300
- Subject: Re: separating gdb & inferior output
- References: <20040824161147.GA17203@white>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 24 Aug 2004 12:11:47 -0400
> From: Bob Rossi <bob@brasko.net>
>
> 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'?