From: Dave Anglin Date: Sun, 14 Sep 2008 14:08:42 +0000 (+0000) Subject: * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. X-Git-Tag: reverse-20080930-branchpoint~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e753cf3a117d45d613214326725352c3ebc47d;p=thirdparty%2Fbinutils-gdb.git * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration. --- 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; } }