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:
eeh 2000-07-28 17:49:52 +00:00
parent 4032d79eac
commit 1d25b50536

View File

@ -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,