From 51e753cf3a117d45d613214326725352c3ebc47d Mon Sep 17 00:00:00 2001 From: Dave Anglin Date: Sun, 14 Sep 2008 14:08:42 +0000 Subject: [PATCH] * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. --- gdb/ChangeLog | 4 ++++ gdb/hppa-linux-tdep.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 865b52393f3..06f4e877d86 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-09-14 John David Anglin + + * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. + 2008-09-13 Joel Brobecker * defs.h (GCC_GENERATED_STDINT_H): Define. diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c index a5dc536ec69..2cc591c0f89 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; } } -- 2.30.2