From 3bf57d210832b28e9361990830eb722a619f031b Mon Sep 17 00:00:00 2001 From: "gdb-2.8" Date: Sat, 3 Sep 1988 08:00:00 +0100 Subject: gdb-2.8 --- gdb/blockframe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/blockframe.c') diff --git a/gdb/blockframe.c b/gdb/blockframe.c index b337900..4acac1e 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -297,6 +297,10 @@ find_pc_misc_function (pc) /* Note that the last thing in the vector is always _etext. */ + /* Above statement is not *always* true - fix for case where there are */ + /* no misc functions at all (ie no symbol table has been read). */ + if (hi < 0) return -1; /* no misc functions recorded */ + /* trivial reject range test */ if (pc < misc_function_vector[0].address || pc > misc_function_vector[hi].address) -- cgit v1.1