Re: [discuss] Support for reverse-execution

Daniel Jacobowitz
2005-05-20T13:47:10Z

On Fri, May 20, 2005 at 03:36:23PM +0200, Fabian Cenedese wrote:
> I followed this thread more out of curiosity than really need for this feature.
> That doesn't mean that we still couldn't use it one day :)
>
> I wondered though if this stepping backwards was more than just a simple
> setting of the program counter. If I step back over a i++, will it also get
> decremented? Or flags, they can't possibly be restored to what they
> were before e.g. a comparison, not without keeping a history. So these
> r-commands are merely other variants of "set next instruction", possibly
> with creating/releasing stack frames but without adjusting values according
> to the stepped over commands. Is this correct?

No, that's not correct. That's why the only target that supports this
at the moment is a simulator; it actually undoes the instructions and
allows them to replay.

--
Daniel Jacobowitz
CodeSourcery, LLC