* 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:
Jason Molenda 2001-10-17 07:12:57 +00:00
parent 15c1449b25
commit 1ba7c32c23
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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++;
}
}