Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFA: Don't assume gpr 0 is register number zero
@ 2004-03-31 21:12 Jim Blandy
  2004-04-20 21:16 ` Jim Blandy
  2004-04-20 22:25 ` Kevin Buettner
  0 siblings, 2 replies; 4+ messages in thread
From: Jim Blandy @ 2004-03-31 21:12 UTC (permalink / raw)
  To: gdb-patches


2004-03-31  James Blandy  <jimb@redhat.com>

	* ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
	register number zero.

Index: gdb/ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.29
diff -c -r1.29 ppc-linux-nat.c
*** gdb/ppc-linux-nat.c	15 Mar 2004 21:35:25 -0000	1.29
--- gdb/ppc-linux-nat.c	31 Mar 2004 15:23:24 -0000
***************
*** 133,139 ****
  
    /* General purpose registers occupy 1 slot each in the buffer */
    if (regno >= tdep->ppc_gp0_regnum && regno <= tdep->ppc_gplast_regnum )
!     u_addr =  ((PT_R0 + regno) * wordsize);
  
    /* Floating point regs: eight bytes each in both 32- and 64-bit
       ptrace interfaces.  Thus, two slots each in 32-bit interface, one
--- 133,139 ----
  
    /* General purpose registers occupy 1 slot each in the buffer */
    if (regno >= tdep->ppc_gp0_regnum && regno <= tdep->ppc_gplast_regnum )
!     u_addr = ((regno - tdep->ppc_gp0_regnum + PT_R0) * wordsize);
  
    /* Floating point regs: eight bytes each in both 32- and 64-bit
       ptrace interfaces.  Thus, two slots each in 32-bit interface, one


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-22  8:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-31 21:12 RFA: Don't assume gpr 0 is register number zero Jim Blandy
2004-04-20 21:16 ` Jim Blandy
2004-04-20 22:25 ` Kevin Buettner
2004-04-22  8:37   ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox