diff options
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/coredep.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1813959..c54d770 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/coredep.c b/gdb/coredep.c index 22d3c6a..487b5fa 100644 --- a/gdb/coredep.c +++ b/gdb/coredep.c @@ -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]); } |