Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gdb Control registers on sparc v9 start with PC_REG...



details:   https://anonhg.NetBSD.org/src/rev/5d50618b06d0
branches:  trunk
changeset: 495463:5d50618b06d0
user:      eeh <eeh%NetBSD.org@localhost>
date:      Fri Jul 28 17:49:52 2000 +0000

description:
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.

diffstat:

 gnu/dist/gdb/sp64nbsd-nat.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 281498915f33 -r 5d50618b06d0 gnu/dist/gdb/sp64nbsd-nat.c
--- a/gnu/dist/gdb/sp64nbsd-nat.c       Fri Jul 28 16:43:49 2000 +0000
+++ b/gnu/dist/gdb/sp64nbsd-nat.c       Fri Jul 28 17:49:52 2000 +0000
@@ -65,7 +65,7 @@
      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,



Home | Main Index | Thread Index | Old Index