mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 07:28:44 +08:00
* i386-tdep.c (i386_supply_fpregset): Support floating-point
registers in `fxsave' format. (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2003-10-31 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* i386-tdep.c (i386_supply_fpregset): Support floating-point
|
||||||
|
registers in `fxsave' format.
|
||||||
|
(i386_regset_from_core_section): Deal with ".reg-xfp" sections.
|
||||||
|
|
||||||
2003-10-30 Mark Kettenis <kettenis@gnu.org>
|
2003-10-30 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
|
* i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
|
||||||
|
@ -1576,6 +1576,12 @@ i386_supply_fpregset (const struct regset *regset, struct regcache *regcache,
|
|||||||
{
|
{
|
||||||
const struct gdbarch_tdep *tdep = regset->descr;
|
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);
|
gdb_assert (len == tdep->sizeof_fpregset);
|
||||||
i387_supply_fsave (regcache, regnum, fpregs);
|
i387_supply_fsave (regcache, regnum, fpregs);
|
||||||
}
|
}
|
||||||
@ -1600,7 +1606,9 @@ i386_regset_from_core_section (struct gdbarch *gdbarch,
|
|||||||
return tdep->gregset;
|
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)
|
if (tdep->fpregset == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user