Minor cleanup in aix-thread.c:supply_fprs.

This is a minor cleanup that makes supply_fprs more consistent with
how fill_fprs was written.

gdb/ChangeLog:

        * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
This commit is contained in:
Joel Brobecker 2012-03-13 22:29:45 +00:00
parent e3ebf1bb41
commit 786c562f1a
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2012-03-13 Joel Brobecker <brobecker@adacore.com>
* aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2012-03-13 Chris January <chris.january@allinea.com>
* aix-thread.c (fill_sprs): Store the floating point registers

View File

@ -1075,9 +1075,11 @@ supply_fprs (struct regcache *regcache, double *vals)
floating-point registers. */
gdb_assert (ppc_floating_point_unit_p (gdbarch));
for (regno = 0; regno < ppc_num_fprs; regno++)
regcache_raw_supply (regcache, regno + tdep->ppc_fp0_regnum,
(char *) (vals + regno));
for (regno = tdep->ppc_fp0_regnum;
regno < tdep->ppc_fp0_regnum + ppc_num_fprs;
regno++)
regcache_raw_supply (regcache, regno,
(char *) (vals + regno - tdep->ppc_fp0_regnum));
}
/* Predicate to test whether given register number is a "special" register. */