This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/1780: Edit code, recompile and go on debugging


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]