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. approved by thorpej



details:   https://anonhg.NetBSD.org/src/rev/b39eee186dce
branches:  netbsd-1-5
changeset: 489260:b39eee186dce
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 26 00:58:13 2000 +0000

description:
Pull up 1.3.  approved by thorpej
>fix vax core dump reading to properly load the registers

diffstat:

 gnu/dist/gdb/vaxnbsd-nat.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r f660a91e9f26 -r b39eee186dce gnu/dist/gdb/vaxnbsd-nat.c
--- a/gnu/dist/gdb/vaxnbsd-nat.c        Sat Aug 26 00:57:40 2000 +0000
+++ b/gnu/dist/gdb/vaxnbsd-nat.c        Sat Aug 26 00:58:13 2000 +0000
@@ -59,7 +59,7 @@
 
 /* XXX - Add this to machine/regs.h instead? */
 struct md_core {
-  struct reg intreg;
+  struct trapframe intreg;
   /* struct fpreg freg; XXX */
 };
 
@@ -71,6 +71,7 @@
      unsigned int reg_addr;    /* Unused in this version */
 {
   struct md_core *core_reg;
+  struct reg *reg;
 
   core_reg = (struct md_core *)core_reg_sect;
 
@@ -84,8 +85,13 @@
   }
 
   /* Integer registers */
-  memcpy(&registers[REGISTER_BYTE (0)],
-        &core_reg->intreg, sizeof(struct reg));
+  reg = (struct reg *) &registers[REGISTER_BYTE (0)];
+  memcpy(&reg->r0, &core_reg->intreg.r0, sizeof(reg->r0)*12);
+  reg->ap = core_reg->intreg.ap;
+  reg->fp = core_reg->intreg.fp;
+  reg->sp = core_reg->intreg.sp;
+  reg->pc = core_reg->intreg.pc;
+  reg->psl = core_reg->intreg.psl;
 
   registers_fetched ();
 }



Home | Main Index | Thread Index | Old Index