aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-09-26 06:59:39 +0000
committerJan Beulich <jbeulich@novell.com>2005-09-26 06:59:39 +0000
commitc6f4c129c66f19ff2574d568af7242be621c9795 (patch)
tree56d714cf4969827f81d8ceb92b787eabf152078b /gdb/i386-tdep.c
parent2af48f682683971cba5c8e8900e4334a1fc04fe1 (diff)
downloadgdb-c6f4c129c66f19ff2574d568af7242be621c9795.zip
gdb-c6f4c129c66f19ff2574d568af7242be621c9795.tar.gz
gdb-c6f4c129c66f19ff2574d568af7242be621c9795.tar.bz2
gdb/
2005-09-26 Jan Beulich <jbeulich@novell.com> * amd64-tdep.h (AMD64_FCTRL_REGNUM, AMD64_FSTAT_REGNUM, AMD64_MXCSR_REGNUM): New. * amd64-tdep.c (amd64_dwarf_regmap): Add eflags, selector regs, mxcsr, fp control and status words. * i386-tdep.c (): Add selector regs, mxcsr, fp control and status words.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 3fd82a6..b060a22 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -225,12 +225,25 @@ i386_svr4_reg_to_regnum (int reg)
/* Floating-point registers. */
return reg - 11 + I387_ST0_REGNUM;
}
- else if (reg >= 21)
+ else if (reg >= 21 && reg <= 36)
{
/* The SSE and MMX registers have the same numbers as with dbx. */
return i386_dbx_reg_to_regnum (reg);
}
+ switch (reg)
+ {
+ case 37: return I387_FCTRL_REGNUM;
+ case 38: return I387_FSTAT_REGNUM;
+ case 39: return I387_MXCSR_REGNUM;
+ case 40: return I386_ES_REGNUM;
+ case 41: return I386_CS_REGNUM;
+ case 42: return I386_SS_REGNUM;
+ case 43: return I386_DS_REGNUM;
+ case 44: return I386_FS_REGNUM;
+ case 45: return I386_GS_REGNUM;
+ }
+
/* This will hopefully provoke a warning. */
return NUM_REGS + NUM_PSEUDO_REGS;
}