From: Hui Zhu Date: Thu, 8 Apr 2010 09:23:06 +0000 (+0000) Subject: 2010-04-08 Hui Zhu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8c4f480201a0ec57a9b9597c0ed91e7594c462a;p=binutils-gdb.git 2010-04-08 Hui Zhu * i386-tdep.c (i386_process_record): Add support for insn rdtsc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f234f298176..33f15569728 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-04-08 Hui Zhu + + * i386-tdep.c (i386_process_record): Add support for insn + rdtsc. + 2010-04-07 Doug Evans * python/python.c (source_python_script): Use ensure_python_env diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index ce658cdb6a7..9e0f61fba8d 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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 */