+2005-04-10 Mark Kettenis <kettenis@gnu.org>
+
+ * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
+ floating-point registers.
+ (ppc_collect_fpregset): Likewise. Fix collection of registers.
+
2005-04-09 Mark Kettenis <kettenis@gnu.org>
* ppcobsd-tdep.c: Update copyright year. Include "trad-frame.h"
offset = offsets->f0_offset;
for (i = tdep->ppc_fp0_regnum;
i < tdep->ppc_fp0_regnum + ppc_num_fprs;
- i++, offset += 4)
+ i++, offset += 8)
{
if (regnum == -1 || regnum == i)
ppc_supply_reg (regcache, i, fpregs, offset);
offset = offsets->f0_offset;
for (i = tdep->ppc_fp0_regnum;
i <= tdep->ppc_fp0_regnum + ppc_num_fprs;
- i++, offset += 4)
+ i++, offset += 8)
{
if (regnum == -1 || regnum == i)
- ppc_collect_reg (regcache, regnum, fpregs, offset);
+ ppc_collect_reg (regcache, i, fpregs, offset);
}
if (regnum == -1 || regnum == tdep->ppc_fpscr_regnum)