This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Checkpoint-restart with different code
On Sat, Dec 10, 2005 at 03:34:47PM -0500, Greg Bronevetsky wrote:
> Thanks for your help! I've looked around some more and it looks like a
> number of debuggers provide some form of this functionality. However,
> they all seem to be binary rewriters. Does anybody know of work at the
> compiler level? I can imagine that it would be possible to allow for
> more flexible editing of the code if it could be recompiled from the source.
That's what fix-and-continue is. The debugger inserts trampolines in
the old function which redirect to the new function.
--
Daniel Jacobowitz
CodeSourcery, LLC