diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-04-10 21:14:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-04-10 21:14:37 +0000 |
commit | bdbcb8b4b7487496fb1e631a95a8cf3d443f675b (patch) | |
tree | a223394f372076db9bedbfa9e4d2b9d3bc0ee82d /gdb | |
parent | 045b540e8ed0252baed399be8cb60833b399c352 (diff) | |
download | gdb-bdbcb8b4b7487496fb1e631a95a8cf3d443f675b.zip gdb-bdbcb8b4b7487496fb1e631a95a8cf3d443f675b.tar.gz gdb-bdbcb8b4b7487496fb1e631a95a8cf3d443f675b.tar.bz2 |
* rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for
floating-point registers.
(ppc_collect_fpregset): Likewise. Fix collection of registers.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aca860a..315abf2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +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" diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index d271ea9..02a76f7 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -395,7 +395,7 @@ ppc_supply_fpregset (const struct regset *regset, struct regcache *regcache, 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); @@ -474,10 +474,10 @@ ppc_collect_fpregset (const struct regset *regset, 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) |