[reverse RFA] no singlestep-over-BP in reverse

Michael Snyder msnyder@vmware.com
Mon Sep 15 18:33:00 GMT 2008


When we're stopped at a breakpoint and we want to
continue in reverse, we're not actually going to
execute the instruction at the breakpoint -- we're
going to de-execute the previous instruction.

Therefore there's no need to singlestep before
inserting breakpoints.  In fact it would be a bad
idea to do so, because if there is a breakpoint at
the previous instruction, we WANT to hit it.

Note that this patch is to be applied to the reverse branch.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bpstep.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080915/74f9c893/attachment.txt>


More information about the Gdb-patches mailing list