Checkpoint-restart with different code

Daniel Jacobowitz drow@false.org
Sun Dec 11 03:53:00 GMT 2005


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



More information about the Gdb mailing list