mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* 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
This commit is contained in:
parent
15c1449b25
commit
1ba7c32c23
@ -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
|
||||
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user