www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/12/01:12:53

Date: Wed, 12 Jun 1996 08:10:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: j DOT aldrich6 AT genie DOT com, Mike LaPaglia <mcl134 AT psu DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: GDB and UNIONS
In-Reply-To: <199606120421.AA059483290@relay1.geis.com>
Message-Id: <Pine.SUN.3.91.960612080357.6323F-100000@is>
Mime-Version: 1.0


On Wed, 12 Jun 1996 j DOT aldrich6 AT genie DOT com wrote:

> >        Also, how can you restart a program in GDB without quitting and
> >reloading the program.  I would find much relief by not haing to retype
> >all my display commands each debug pass.
> 
> You can't.  It has to do with the way DOS runs programs.

I think this is not really a DOS limitation, but a misfeature of how the 
ported gdb loads the debuggee image.  Somebody once said here that if you 
put a breakpoint in `exit' which will stop the program right before it 
actually exits, you *can* use the `run' command to restart the debuggee.  
I didn't test this, but if you hate restarting gdb (especially if you 
changed a lot of settings inside gdb which you don't want to lose), you 
might as well give this a try.  If you do, please post your experience 
here.

- Raw text -


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