This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [discuss] Support for reverse-execution


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]