Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	  teawater <teawater@gmail.com>
Subject: [RFA record/replay] displaced stepping and record/replay
Date: Sun, 05 Oct 2008 21:29:00 -0000	[thread overview]
Message-ID: <48E93140.1090408@vmware.com> (raw)

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

             reply	other threads:[~2008-10-05 21:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-05 21:29 Michael Snyder [this message]
2008-10-06  7:30 ` teawater
2008-10-06 17:25   ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48E93140.1090408@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb-patches@sourceware.org \
    --cc=teawater@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox