diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-05-10 16:52:39 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-05-10 16:52:39 +0000 |
commit | 26c0b94256451dd523420822fda58e5618f0c784 (patch) | |
tree | deb4e2fcc36fdac0c36fad88a54e73ee65bcf403 /gdb | |
parent | bf08c2a10fc7a38d7bcdc33f578da56815391c98 (diff) | |
download | gdb-26c0b94256451dd523420822fda58e5618f0c784.zip gdb-26c0b94256451dd523420822fda58e5618f0c784.tar.gz gdb-26c0b94256451dd523420822fda58e5618f0c784.tar.bz2 |
* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
loop collecting gprs.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 44005fa..b72f630 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-10 Jim Blandy <jimb@redhat.com> + + * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in + loop collecting gprs. + 2004-05-09 Andrew Cagney <cagney@redhat.com> * remote-vx.c (net_step): Delete step-range code. diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 2663324..68e90a3 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); |