This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: actually use loop index
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 10 May 2004 11:54:28 -0500
- Subject: PATCH: actually use loop index
Committed as obvious.
2004-05-09 Jim Blandy <jimb@redhat.com>
* rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
collect all the gprs.
*** gdb/rs6000-tdep.c 2004-05-07 17:50:47.000000000 -0500
--- gdb/rs6000-tdep.c 2004-05-09 05:37:20.000000000 -0500
*************** ppc_collect_gregset (const struct regset
*** 262,268 ****
for (i = 0; i < 32; i++, offset += 4)
{
if (regnum == -1 || regnum == i)
! ppc_collect_reg (regcache, regnum, gregs, offset);
}
if (regnum == -1 || regnum == PC_REGNUM)
--- 262,268 ----
for (i = 0; i < 32; i++, offset += 4)
{
if (regnum == -1 || regnum == i)
! ppc_collect_reg (regcache, i, gregs, offset);
}
if (regnum == -1 || regnum == PC_REGNUM)