From 3800e6453931c8cae5e5f0626214a5194b0689ff Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 12 Oct 2009 15:52:28 +0000 Subject: [PATCH] 2009-10-12 Jiang Jilin * i386-tdep.c (i386_process_record): Add xgetbv/xsetbv instructions support. --- gdb/ChangeLog | 5 +++++ gdb/i386-tdep.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7e3f17b81bf..dab0eca622e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-10-12 Jiang Jilin + + * i386-tdep.c (i386_process_record): Add xgetbv/xsetbv + instructions support. + 2009-10-11 Pedro Alves * procfs.c (procfs_make_note_section): Go back to only outputing diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index b4dc646b37d..b354462cb92 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -5172,6 +5172,19 @@ reswitch: break; /* lgdt */ case 2: + if (ir.mod == 3) + { + /* xgetbv */ + if (ir.rm == 0) + { + I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REAX_REGNUM); + I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_REDX_REGNUM); + break; + } + /* xsetbv */ + else if (ir.rm == 1) + break; + } /* lidt */ case 3: if (ir.mod == 3) -- 2.30.2