Source-Changes-HG archive

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

[src/netbsd-1-5]: src/gnu/dist/gdb pull up 1.3, 1.4 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/e1e108f263a0
branches:  netbsd-1-5
changeset: 488929:e1e108f263a0
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Aug 07 00:36:35 2000 +0000

description:
pull up 1.3, 1.4 (approved by thorpej):
>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.

>Clear out all of %g0.

diffstat:

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

diffs (21 lines):

diff -r 07b30857c90e -r e1e108f263a0 gnu/dist/gdb/sp64nbsd-nat.c
--- a/gnu/dist/gdb/sp64nbsd-nat.c       Mon Aug 07 00:28:46 2000 +0000
+++ b/gnu/dist/gdb/sp64nbsd-nat.c       Mon Aug 07 00:36:35 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,
@@ -324,7 +324,7 @@
   *(int *)&registers[REGISTER_BYTE (Y_REGNUM)]   = tf->tf_y;
 
   /* Clear out the G0 slot (see reg.h) */
-  *(int *)&registers[REGISTER_BYTE(G0_REGNUM)] = 0;
+  *(long *)&registers[REGISTER_BYTE(G0_REGNUM)] = 0;
 
   /* My best guess at where to get the locals and input
      registers is exactly where they usually are, right above



Home | Main Index | Thread Index | Old Index