aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 1641592..b904f23 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -176,7 +176,7 @@ lookup_minimal_symbol_by_pc (pc)
if ((msymbol = objfile -> msymbols) != NULL)
{
lo = 0;
- hi = objfile -> minimal_symbol_count - 2;
+ hi = objfile -> minimal_symbol_count - 1;
/* This code assumes that the minimal symbols are sorted by
ascending address values. If the pc value is greater than or