aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2008-09-14 14:08:42 +0000
committerDave Anglin <dave.anglin@nrc.ca>2008-09-14 14:08:42 +0000
commit51e753cf3a117d45d613214326725352c3ebc47d (patch)
treebc191568e52919903a3168c8a83338ece488a48d
parentc3229d3803e1f5802fc26f6e5a08101bcb6620d7 (diff)
downloadgdb-51e753cf3a117d45d613214326725352c3ebc47d.zip
gdb-51e753cf3a117d45d613214326725352c3ebc47d.tar.gz
gdb-51e753cf3a117d45d613214326725352c3ebc47d.tar.bz2
* hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/hppa-linux-tdep.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 865b523..06f4e87 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
+
2008-09-13 Joel Brobecker <brobecker@adacore.com>
* defs.h (GCC_GENERATED_STDINT_H): Define.
diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c
index a5dc536..2cc591c 100644
--- a/gdb/hppa-linux-tdep.c
+++ b/gdb/hppa-linux-tdep.c
@@ -474,12 +474,12 @@ hppa_linux_supply_fpregset (const struct regset *regset,
int i, offset;
offset = 0;
- for (i = 0; i < 31; i++)
+ for (i = 0; i < 64; i++)
{
if (regnum == HPPA_FP0_REGNUM + i || regnum == -1)
regcache_raw_supply (regcache, HPPA_FP0_REGNUM + i,
buf + offset);
- offset += 8;
+ offset += 4;
}
}