diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-01 21:07:02 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-01 21:07:02 +0000 |
commit | 3762d624876e70b99824c00afd7f6229e84c307b (patch) | |
tree | c24ccc84849ff8a2e00a7867141457e1966fbb4c /gdb/mips-nat.c | |
parent | 0abbc7715fd8e800364281b37b560a2f11987044 (diff) | |
download | ppe42-binutils-3762d624876e70b99824c00afd7f6229e84c307b.tar.gz ppe42-binutils-3762d624876e70b99824c00afd7f6229e84c307b.zip |
* mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
we can still process "modern" core files.
Diffstat (limited to 'gdb/mips-nat.c')
-rw-r--r-- | gdb/mips-nat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index b585850e91..bcdec8714c 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -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++) { |