forked from Imagelibrary/binutils-gdb
* ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
register number zero.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-04-22 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
|
||||||
|
register number zero.
|
||||||
|
|
||||||
2004-04-21 Andrew Cagney <cagney@redhat.com>
|
2004-04-21 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* annotate.h (deprecated_annotate_starting_hook)
|
* annotate.h (deprecated_annotate_starting_hook)
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ ppc_register_u_addr (int regno)
|
|||||||
|
|
||||||
/* General purpose registers occupy 1 slot each in the buffer */
|
/* General purpose registers occupy 1 slot each in the buffer */
|
||||||
if (regno >= tdep->ppc_gp0_regnum && regno <= tdep->ppc_gplast_regnum )
|
if (regno >= tdep->ppc_gp0_regnum && regno <= tdep->ppc_gplast_regnum )
|
||||||
u_addr = ((PT_R0 + regno) * wordsize);
|
u_addr = ((regno - tdep->ppc_gp0_regnum + PT_R0) * wordsize);
|
||||||
|
|
||||||
/* Floating point regs: eight bytes each in both 32- and 64-bit
|
/* Floating point regs: eight bytes each in both 32- and 64-bit
|
||||||
ptrace interfaces. Thus, two slots each in 32-bit interface, one
|
ptrace interfaces. Thus, two slots each in 32-bit interface, one
|
||||||
|
|||||||
Reference in New Issue
Block a user