This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA record/replay] displaced stepping and record/replay
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, teawater <teawater at gmail dot com>
- Date: Sun, 05 Oct 2008 14:27:28 -0700
- Subject: [RFA record/replay] displaced stepping and record/replay
Hui --
I think I may have stumbled on the answer to this whole problem!
One line change -- just don't allow displaced stepping when in
record *or* replay mode.
Michael
2008-10-05 Michael Snyder <msnyder@vmware.com>
* infrun.c (use_displaced_stepping): Disallow displaced
stepping if using record/replay target.
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.300.2.8
diff -u -p -r1.300.2.8 infrun.c
--- infrun.c 5 Oct 2008 20:00:36 -0000 1.300.2.8
+++ infrun.c 5 Oct 2008 21:23:48 -0000
@@ -645,7 +645,7 @@ use_displaced_stepping (struct gdbarch *
{
return (can_use_displaced_stepping
&& gdbarch_displaced_step_copy_insn_p (gdbarch)
- && !RECORD_IS_REPLAY);
+ && !RECORD_IS_USED);
}
/* Clean out any stray displaced stepping state. */