Date: Wed, 12 Jun 1996 08:10:29 +0200 (IST) From: Eli Zaretskii To: j DOT aldrich6 AT genie DOT com, Mike LaPaglia Cc: djgpp AT delorie DOT com Subject: Re: GDB and UNIONS In-Reply-To: <199606120421.AA059483290@relay1.geis.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.