mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-29 13:04:46 +08:00
* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
loop collecting gprs.
This commit is contained in:
parent
bf08c2a10f
commit
26c0b94256
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user