Mail Archives: djgpp/1996/06/12/01:12:53
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 -