This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]