Fwd: question about reverse debugging

Ren Kimura rkx1209dev at gmail.com
Tue Mar 14 08:37:25 UTC 2017

2017-03-13 17:44 GMT+09:00 Robert O'Callahan <robert at ocallahan.org>:

> On Mon, Mar 13, 2017 at 9:23 PM, Ren Kimura <rkx1209dev at gmail.com> wrote:
> > I have two questions about reverse single step function in rr.
> >
> > First, how is state of register and memory restored after execution of
> > reverse single step command? Which parts of
> > ReplayTimeline::reverse_singlestep function are doing that?
> > current->replay_step does not seems to do, I think.
> >
> > And second, what is 'checkpoint' in ReplayTimeline? In what case are
> > checkpoints set?
> See `ReplaySession::clone`.
> Reverse execution is implemented by restoring from a checkpoint and
> then executing forward to the desired point.

Thank you for replaying.

OK. After restoring from a checkpoint, all operations between the
checkpoint and desired point should be emulated.
What function is doing that and how?

I'm little confused about how actual operations are executed until desired
point without debugee process.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rr-dev/attachments/20170314/7ff18b61/attachment.html>

More information about the rr-dev mailing list