Control registers on sparc v9 start with PC_REGNUM not Y_REGNUM since
%pc and %npc are stored in %tpc and %tnpc rather than %l1 and %l2.
This commit is contained in:
parent
4032d79eac
commit
1d25b50536
2
gnu/dist/gdb/sp64nbsd-nat.c
vendored
2
gnu/dist/gdb/sp64nbsd-nat.c
vendored
@ -65,7 +65,7 @@ fetch_inferior_registers (regno)
|
||||
we have to do that first, since they're found in memory relative
|
||||
to the stack pointer. */
|
||||
if (regno < O7_REGNUM /* including -1 */
|
||||
|| regno >= Y_REGNUM
|
||||
|| regno >= PC_REGNUM
|
||||
|| (!register_valid[SP_REGNUM] && regno < I7_REGNUM))
|
||||
{
|
||||
if (0 != ptrace (PT_GETREGS, inferior_pid,
|
||||
|
Loading…
Reference in New Issue
Block a user