2010-04-08 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Thu, 8 Apr 2010 09:23:06 +0000 (09:23 +0000)
committerHui Zhu <teawater@gmail.com>
Thu, 8 Apr 2010 09:23:06 +0000 (09:23 +0000)
* i386-tdep.c (i386_process_record): Add support for insn
rdtsc.

gdb/ChangeLog
gdb/i386-tdep.c

index f234f2981760b32802981b1a4c07f83293bb796d..33f15569728d06c44d7545ece798052734aeefc5 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-08  Hui Zhu  <teawater@gmail.com>
+
+       * i386-tdep.c (i386_process_record): Add support for insn
+       rdtsc.
+
 2010-04-07  Doug Evans  <dje@google.com>
 
        * python/python.c (source_python_script): Use ensure_python_env
index ce658cdb6a73869386397044f8edf40c709add0b..9e0f61fba8d67d0e904e4ae6b5055d5b48d9ecb1 100644 (file)
@@ -5395,10 +5395,8 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
       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 */