* mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 1 Jul 1993 21:07:02 +0000 (21:07 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 1 Jul 1993 21:07:02 +0000 (21:07 +0000)
we can still process "modern" core files.

gdb/ChangeLog
gdb/mips-nat.c

index 55385b007054e544dad63c293436d232e71eaa77..be39a8651fd80153c9da3a474d6842a3b1483444 100644 (file)
@@ -4,6 +4,8 @@ Thu Jul  1 09:51:27 1993  Jim Kingdon  (kingdon@cygnus.com)
        Define FETCH_INFERIOR_REGISTERS.
        * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
        Fix misspelling of NAT_FILE.
+       * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
+       we can still process "modern" core files.
 
        * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
        print c_line.
index b585850e91f3584e40801ac19feece93f9abf1a6..bcdec8714c5adf80feda95c1abc66df1c21a6a73 100644 (file)
@@ -193,7 +193,11 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
      core file without a upage, reg_ptr will be zero and this is all a big
      NOP.  */
   if (reg_ptr > core_reg_size)
+#ifdef KERNEL_U_ADDR
     reg_ptr -= KERNEL_U_ADDR;
+#else
+    error ("Old mips core file can't be processed on this machine.");
+#endif
 
   for (regno = 0; regno < NUM_REGS; regno++)
     {
This page took 0.031798 seconds and 4 git commands to generate.