aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-12-05 12:20:18 +0000
committerJohn Gilmore <gnu@cygnus>1991-12-05 12:20:18 +0000
commit299ee4e6c7c5c9853e36933803be648c758e07eb (patch)
treedc1f606d9904b230ac8f83351e79a2451a33f421 /gdb
parent2a5ec41d888f9f6004f237670e676ea5617f281e (diff)
downloadfsf-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')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/coredep.c2
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]);
}