projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5ec41
)
Fencepost error in reporting regs we can't find in core file.
author
John Gilmore
<gnu@cygnus>
Thu, 5 Dec 1991 12:20:18 +0000
(12:20 +0000)
committer
John Gilmore
<gnu@cygnus>
Thu, 5 Dec 1991 12:20:18 +0000
(12:20 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/coredep.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 18139592826a0e264717e9f6a50f70b73a99cffd..c54d7709146b0332f76e5aa941d500eba874ecd4 100644
(file)
--- 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 22d3c6aaf4a690ad7bf27a84c94e3412530e6d95..487b5fab55e7e63a9164d0e53b81c9c305c9d785 100644
(file)
--- 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]);
}