Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA record/replay] displaced stepping and record/replay
@ 2008-10-05 21:29 Michael Snyder
  2008-10-06  7:30 ` teawater
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2008-10-05 21:29 UTC (permalink / raw)
  To: gdb-patches, teawater

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

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


[-- Attachment #2: displaced.txt --]
[-- Type: text/plain, Size: 686 bytes --]

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.  */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-06 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-05 21:29 [RFA record/replay] displaced stepping and record/replay Michael Snyder
2008-10-06  7:30 ` teawater
2008-10-06 17:25   ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox