mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Fencepost error in reporting regs we can't find in core file.
This commit is contained in:
parent
2a5ec41d88
commit
299ee4e6c7
@ -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.
|
||||
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user