www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/17/11:30:40

Date: Thu, 17 Oct 1996 17:05:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gautier <Gautier DOT DeMontmollin AT maths DOT unine DOT ch>
Cc: djgpp AT delorie DOT com
Subject: Re: Q: GDB (debugger) and redirection
In-Reply-To: <1996Oct17.122054.5283@news>
Message-Id: <Pine.SUN.3.91.961017170404.25294D-100000@is>
Mime-Version: 1.0

On 17 Oct 1996, Gautier wrote:

>     1: redirect output to a file when using the gdb debugger;
>     2: redirect output again to standard output when launching the
>        program to debug

I would say no.  In general, redirecting files don't mix well with GDB, 
since GDB and the debugged program share file handles.  For example, if 
the debugged program closes stdin, you will be unable to talk to GDB 
after that.

- Raw text -


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