Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [RFA] Prec: add x86 insn rdtsc
Date: Thu, 08 Apr 2010 06:53:00 -0000	[thread overview]
Message-ID: <r2vdaef60381004072352y44cdde49n13c9531c1bb03afe@mail.gmail.com> (raw)
In-Reply-To: <s2vdaef60381004052305kd9e28cb5h9a67dca07447ead7@mail.gmail.com>

Update follow cvs-head.
Please help me review it.

Thanks,
Hui

2010-04-08  Hui Zhu  <teawater@gmail.com>

	* i386-tdep.c (i386_process_record): Add support for insn
	rdtsc.

---
 i386-tdep.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- a/i386-tdep.c
+++ b/i386-tdep.c
@@ -5395,10 +5395,8 @@ i386_process_record (struct gdbarch *gdb
       break;

     case 0x0f31:    /* rdtsc */
-      printf_unfiltered (_("Process record does not support "
-			   "instruction rdtsc.\n"));
-      ir.addr -= 2;
-      goto no_support;
+      I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REAX_REGNUM);
+      I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REDX_REGNUM);
       break;

     case 0x0f34:    /* sysenter */


  reply	other threads:[~2010-04-08  6:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06  6:05 Hui Zhu
2010-04-08  6:53 ` Hui Zhu [this message]
2010-04-08  9:12   ` Mark Kettenis
2010-04-08  9:28     ` Hui Zhu

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=r2vdaef60381004072352y44cdde49n13c9531c1bb03afe@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /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