* mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,

we can still process "modern" core files.
This commit is contained in:
Jim Kingdon
1993-07-01 21:07:02 +00:00
parent 0abbc7715f
commit 3762d62487
2 changed files with 6 additions and 0 deletions

View 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++)
{