aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-10-30 23:03:36 +0000
committerMark Kettenis <kettenis@gnu.org>2003-10-30 23:03:36 +0000
commit66a72d250dbbacfac500c32ee25871ef6eea7fc5 (patch)
tree53312fa3e46a8cb0ec44ed68a2c1788d94c80d3a /gdb/i386-tdep.c
parent3084807aa698583bb731a13ac784c91e12738e6a (diff)
downloadgdb-66a72d250dbbacfac500c32ee25871ef6eea7fc5.zip
gdb-66a72d250dbbacfac500c32ee25871ef6eea7fc5.tar.gz
gdb-66a72d250dbbacfac500c32ee25871ef6eea7fc5.tar.bz2
* i386-tdep.c (i386_supply_fpregset): Support floating-point
registers in `fxsave' format. (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index e8d42a1..69db1fa 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -1576,6 +1576,12 @@ i386_supply_fpregset (const struct regset *regset, struct regcache *regcache,
{
const struct gdbarch_tdep *tdep = regset->descr;
+ if (len == I387_SIZEOF_FXSAVE)
+ {
+ i387_supply_fxsave (regcache, regnum, fpregs);
+ return;
+ }
+
gdb_assert (len == tdep->sizeof_fpregset);
i387_supply_fsave (regcache, regnum, fpregs);
}
@@ -1600,7 +1606,9 @@ i386_regset_from_core_section (struct gdbarch *gdbarch,
return tdep->gregset;
}
- if (strcmp (sect_name, ".reg2") == 0 && sect_size == tdep->sizeof_fpregset)
+ if ((strcmp (sect_name, ".reg2") == 0 && sect_size == tdep->sizeof_fpregset)
+ || (strcmp (sect_name, ".reg-xfp") == 0
+ && sect_size == I387_SIZEOF_FXSAVE))
{
if (tdep->fpregset == NULL)
{