This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [reverse/record] adjust_pc_after_break in reverse execution mode?
On Sun, Oct 19, 2008 at 05:39:30PM -0700, Michael Snyder wrote:
> See, the problem is that "adjust_pc_after_break" is assuming
> memory-breakpoint semantics, but Process Record/Replay actually
> implements hardware-breakpoint semantics. It watches the
> instruction-address "bus" and stops when the PC matches the
> address of a breakpoint.
Don't x86 hardware breakpoints behave the same as x86 software
breakpoints in this regard?
I'd suggest the replay target make this as simple as possible for the
rest of GDB: increment the PC by decr_pc_after_break. Or is that
going to cause some other problem?
--
Daniel Jacobowitz
CodeSourcery