Re: [RFA] checkpoint / restart, and multi-fork debugging

Michael Snyder
2005-12-10T01:34:00Z

Daniel Jacobowitz wrote:
> On Fri, Dec 09, 2005 at 04:23:34PM +0200, Eli Zaretskii wrote:
>
>>>A nice problem this solves is handling watchpoints when the system has
>>>address space randomization. I run into this all the time when
>>>debugging -- back before this feature was added to the OS I would put
>>>a fair amount of effort into finding some address to watch in one
>>>debug session, then restart the inferior with a watchpoint set.
>>>Randomization made this impossible; but with this patch I could just
>>>make a checkpoint at 'main'.
>>
>>Perhaps we should mention this as well.
>
> Amen!

Something like this?

It may be useful to take a checkpoint at 'main', and return
to that checkpoint instead of restarting the program. This
will help keep things deterministic by avoiding random things
that may occur during creation of a new process (such as
address space randomization).

I don't really know about "address space randomization" (though
I can guess what it means)...