aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2001-10-17 07:12:57 +0000
committerJason Molenda <jmolenda@apple.com>2001-10-17 07:12:57 +0000
commit1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d (patch)
treeafc8b38f940360a1df45be2bd77d93b710826a5d /gdb/symtab.c
parent15c1449b2593a7bbbca15b76576152e6e68efc7f (diff)
downloadgdb-1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d.zip
gdb-1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d.tar.gz
gdb-1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d.tar.bz2
* symtab.c (lookup_block_symbol): Break out of linear search
if we're past the range of possible matches. Original patch submission, with links to history/background behind it, here: http://sources.redhat.com/ml/gdb-patches/2001-09/msg00120.html
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index b1a2590..c0fa1e7 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1211,6 +1211,10 @@ lookup_block_symbol (register const struct block *block, const char *name,
{
return sym;
}
+ if (SYMBOL_SOURCE_NAME (sym)[0] > name[0])
+ {
+ break;
+ }
bot++;
}
}