diff options
author | Jason Molenda <jmolenda@apple.com> | 2001-10-17 07:12:57 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2001-10-17 07:12:57 +0000 |
commit | 1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d (patch) | |
tree | afc8b38f940360a1df45be2bd77d93b710826a5d /gdb | |
parent | 15c1449b2593a7bbbca15b76576152e6e68efc7f (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bb1ff06..aea9dc1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-10-17 Jason Molenda (jason-cl@molenda.com) + + * symtab.c (lookup_block_symbol): Break out of linear search + if we're past the range of possible matches. + 2001-10-16 Christopher Faylor <cgf@redhat.com> * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding 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++; } } |