summaryrefslogtreecommitdiff
path: root/gdb/aix-thread.c
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
commita6c252423c3bfe1adb83d8e1120c7cede77ecd04 (patch)
tree08007d6899642b3d35d81ea53237a8474e2e6dbb /gdb/aix-thread.c
parent7e0874ee6165f4284daf1d378fe44a665ee46be1 (diff)
downloadgdb-a6c252423c3bfe1adb83d8e1120c7cede77ecd04.tar.gz
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.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r--gdb/aix-thread.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index f9787e3ab7a..534f7318ce7 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. */