www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/28/05:19:09

Date: Sun, 28 Apr 1996 12:06:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: j DOT aldrich6 AT genie DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Unexplained memory problem
In-Reply-To: <199604272348.AA250758915@relay1.geis.com>
Message-Id: <Pine.SUN.3.91.960428120153.29143F-100000@is>
Mime-Version: 1.0

On Sat, 27 Apr 1996 j DOT aldrich6 AT genie DOT com wrote:

> P.S.  Is there any way to redirect the output of a program to stderr without
> having gdb's stderr redirected also?  Typing 'gdb redir -ea <file> <program>'

AFAIK, gdb and the debuggee share the file descriptors (this is still
single-process DOS, remember?).  You will have to tweak gdb to use console
I/O instead of file I/O to achieve that kind of redirection (which, btw,
is something that must be done anyway IMHO, to make gdb more stable when
debugging programs that redirect their standard streams). 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019