This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/1780: Edit code, recompile and go on debugging
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 20 Sep 2004 03:08:00 -0000
- Subject: Re: gdb/1780: Edit code, recompile and go on debugging
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR gdb/1780; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: ryo_saeba29@hotmail.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/1780: Edit code, recompile and go on debugging
Date: Sun, 19 Sep 2004 22:59:44 -0400
On Sun, Sep 19, 2004 at 01:13:41PM -0000, ryo_saeba29@hotmail.com wrote:
> One killer feature would be to be able to change the code being
> debugged through source recompilation.
>
> IE the following scenario:
> * gdb hits a breakpoint, or code causes exception
> * examine stack, current calls, incriminated code part
> * change your code
> * recompile the program
> * gdb reloads modified program and goes on executing this modified version
>
> This would really simplify debugging, as sometimes you get obscure
> errors / make stupid mistakes easy to correct but rerunning the
> program takes a while, and are glad to "dynamically" change the code
> being executed/debugged. How-To-Repeat:
Apple has an implementation of this, called fix-and-continue. It
requires cooperation from the compiler and linker and build system, not
just the debugger.
--
Daniel Jacobowitz