* rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
collect all the gprs.
This commit is contained in:
parent
26c0b94256
commit
2e56e9c16f
|
@ -1,5 +1,8 @@
|
||||||
2004-05-10 Jim Blandy <jimb@redhat.com>
|
2004-05-10 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
|
||||||
|
collect all the gprs.
|
||||||
|
|
||||||
* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
|
* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
|
||||||
loop collecting gprs.
|
loop collecting gprs.
|
||||||
|
|
||||||
|
|
|
@ -260,7 +260,7 @@ ppc_collect_gregset (const struct regset *regset,
|
||||||
for (i = 0; i < 32; i++, offset += 4)
|
for (i = 0; i < 32; i++, offset += 4)
|
||||||
{
|
{
|
||||||
if (regnum == -1 || regnum == i)
|
if (regnum == -1 || regnum == i)
|
||||||
ppc_collect_reg (regcache, regnum, gregs, offset);
|
ppc_collect_reg (regcache, i, gregs, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (regnum == -1 || regnum == PC_REGNUM)
|
if (regnum == -1 || regnum == PC_REGNUM)
|
||||||
|
|
Loading…
Reference in New Issue