This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Prec: add x86 insn rdtsc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]