Fencepost error in reporting regs we can't find in core file.

This commit is contained in:
John Gilmore 1991-12-05 12:20:18 +00:00
parent 2a5ec41d88
commit 299ee4e6c7
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Thu Dec 5 03:34:21 1991 John Gilmore (gnu at cygnus.com)
* coredep.c (fetch_core_registers): Fencepost error. Fixed by
Jay Lepreau <lepreau@cs.utah.edu>.
* inflow.c: Remember whether GDB has a terminal. Avoid switching
terminals back and forth if we don't have one.

View File

@ -82,7 +82,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
supply_register (regno, core_reg_sect + addr);
}
}
if (bad_reg > 0)
if (bad_reg >= 0)
{
error ("Register %s not found in core file.", reg_names[bad_reg]);
}