OSDN Git Service

2009-10-12 Jiang Jilin <freephp@gmail.com>
authormsnyder <msnyder>
Mon, 12 Oct 2009 15:52:25 +0000 (15:52 +0000)
committermsnyder <msnyder>
Mon, 12 Oct 2009 15:52:25 +0000 (15:52 +0000)
* i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
instructions support.

gdb/ChangeLog
gdb/i386-tdep.c

index 7e3f17b..dab0eca 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-12  Jiang Jilin  <freephp@gmail.com>
+
+       * i386-tdep.c (i386_process_record): Add xgetbv/xsetbv
+       instructions support.
+
 2009-10-11  Pedro Alves  <pedro@codesourcery.com>
 
        * procfs.c (procfs_make_note_section): Go back to only outputing
index b4dc646..b354462 100644 (file)
@@ -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)