aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-13 22:29:45 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-13 22:29:45 +0000
commit786c562f1ac5d475f0949c7731b116aaaec04927 (patch)
tree7115311ca480cb94b504265e14fede88d54e8579
parente3ebf1bb4166d27e70d049033773740cbd05b5d1 (diff)
downloadgdb-786c562f1ac5d475f0949c7731b116aaaec04927.zip
gdb-786c562f1ac5d475f0949c7731b116aaaec04927.tar.gz
gdb-786c562f1ac5d475f0949c7731b116aaaec04927.tar.bz2
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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/aix-thread.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b5f0f33..8004bd9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index f9787e3..534f731 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -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. */