diff options
author | John Gilmore <gnu@cygnus> | 1991-12-05 12:20:18 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-12-05 12:20:18 +0000 |
commit | 299ee4e6c7c5c9853e36933803be648c758e07eb (patch) | |
tree | dc1f606d9904b230ac8f83351e79a2451a33f421 /gdb/coredep.c | |
parent | 2a5ec41d888f9f6004f237670e676ea5617f281e (diff) | |
download | fsf-binutils-gdb-299ee4e6c7c5c9853e36933803be648c758e07eb.zip fsf-binutils-gdb-299ee4e6c7c5c9853e36933803be648c758e07eb.tar.gz fsf-binutils-gdb-299ee4e6c7c5c9853e36933803be648c758e07eb.tar.bz2 |
Fencepost error in reporting regs we can't find in core file.
Diffstat (limited to 'gdb/coredep.c')
-rw-r--r-- | gdb/coredep.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |