aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-nat.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-01 21:07:02 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-01 21:07:02 +0000
commit3762d624876e70b99824c00afd7f6229e84c307b (patch)
treec24ccc84849ff8a2e00a7867141457e1966fbb4c /gdb/mips-nat.c
parent0abbc7715fd8e800364281b37b560a2f11987044 (diff)
downloadgdb-3762d624876e70b99824c00afd7f6229e84c307b.zip
gdb-3762d624876e70b99824c00afd7f6229e84c307b.tar.gz
gdb-3762d624876e70b99824c00afd7f6229e84c307b.tar.bz2
* 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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c
index b585850..bcdec87 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++)
{