From: Jim Blandy Date: Mon, 10 May 2004 16:52:39 +0000 (+0000) Subject: * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26c0b94256451dd523420822fda58e5618f0c784;p=binutils-gdb.git * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in loop collecting gprs. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44005fa7892..b72f6304f93 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-10 Jim Blandy + + * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in + loop collecting gprs. + 2004-05-09 Andrew Cagney * remote-vx.c (net_step): Delete step-range code. diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 26633248c1e..68e90a3c66b 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -257,7 +257,7 @@ ppc_collect_gregset (const struct regset *regset, int i; offset = offsets->r0_offset; - for (i = 0; i <= 32; i++, offset += 4) + for (i = 0; i < 32; i++, offset += 4) { if (regnum == -1 || regnum == i) ppc_collect_reg (regcache, regnum, gregs, offset);