2009-12-10 Michael Snyder <msnyder@vmware.com>
* i386-tdep.c (i386_record_lea_modrm_addr): Indent goto label. (i386_process_record): Indent goto label. Use prefix opcode constants from include/opcode/i386.h in switch statement.
This commit is contained in:
parent
b44f0b0212
commit
01fe1b4183
2 changed files with 22 additions and 16 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-12-10 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* i386-tdep.c (i386_record_lea_modrm_addr): Indent goto label.
|
||||
(i386_process_record): Indent goto label. Use prefix opcode
|
||||
constants from include/opcode/i386.h in switch statement.
|
||||
|
||||
2009-12-10 Chris Moller <cmoller@redhat.com>
|
||||
|
||||
PR gdb/9399
|
||||
|
|
|
@ -3315,39 +3315,39 @@ i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
|
|||
return -1;
|
||||
}
|
||||
ir.addr++;
|
||||
switch (tmpu8)
|
||||
switch (tmpu8) /* Instruction prefixes */
|
||||
{
|
||||
case 0xf3:
|
||||
case REPE_PREFIX_OPCODE:
|
||||
prefixes |= PREFIX_REPZ;
|
||||
break;
|
||||
case 0xf2:
|
||||
case REPNE_PREFIX_OPCODE:
|
||||
prefixes |= PREFIX_REPNZ;
|
||||
break;
|
||||
case 0xf0:
|
||||
case LOCK_PREFIX_OPCODE:
|
||||
prefixes |= PREFIX_LOCK;
|
||||
break;
|
||||
case 0x2e:
|
||||
case CS_PREFIX_OPCODE:
|
||||
ir.override = X86_RECORD_CS_REGNUM;
|
||||
break;
|
||||
case 0x36:
|
||||
case SS_PREFIX_OPCODE:
|
||||
ir.override = X86_RECORD_SS_REGNUM;
|
||||
break;
|
||||
case 0x3e:
|
||||
case DS_PREFIX_OPCODE:
|
||||
ir.override = X86_RECORD_DS_REGNUM;
|
||||
break;
|
||||
case 0x26:
|
||||
case ES_PREFIX_OPCODE:
|
||||
ir.override = X86_RECORD_ES_REGNUM;
|
||||
break;
|
||||
case 0x64:
|
||||
case FS_PREFIX_OPCODE:
|
||||
ir.override = X86_RECORD_FS_REGNUM;
|
||||
break;
|
||||
case 0x65:
|
||||
case GS_PREFIX_OPCODE:
|
||||
ir.override = X86_RECORD_GS_REGNUM;
|
||||
break;
|
||||
case 0x66:
|
||||
case DATA_PREFIX_OPCODE:
|
||||
prefixes |= PREFIX_DATA;
|
||||
break;
|
||||
case 0x67:
|
||||
case ADDR_PREFIX_OPCODE:
|
||||
prefixes |= PREFIX_ADDR;
|
||||
break;
|
||||
case 0x40: /* i386 inc %eax */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue