diff options
author | Michael Snyder <msnyder@vmware.com> | 2009-10-12 15:52:28 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2009-10-12 15:52:28 +0000 |
commit | 3800e6453931c8cae5e5f0626214a5194b0689ff (patch) | |
tree | 3992863ecc8dc523c8fe493f676274e1d84d580c /gdb/i386-tdep.c | |
parent | 1c7814eddb5055274e4fba5a2910a18ab1175ef4 (diff) | |
download | gdb-3800e6453931c8cae5e5f0626214a5194b0689ff.zip gdb-3800e6453931c8cae5e5f0626214a5194b0689ff.tar.gz gdb-3800e6453931c8cae5e5f0626214a5194b0689ff.tar.bz2 |
2009-10-12 Jiang Jilin <freephp@gmail.com>
* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
instructions support.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index b4dc646..b354462 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) |