2001-01-29 Michael Chastain <chastain@redhat.com>

* symtab.c (block_lookup_symbol): Use 'namespace' parameter in
	symbol comparisons in binary search.
This commit is contained in:
Michael Chastain
2001-01-30 02:49:36 +00:00
parent 9add9c04bd
commit c9049fc98f
4 changed files with 122 additions and 2 deletions

View File

@ -1259,8 +1259,11 @@ lookup_block_symbol (register const struct block *block, const char *name,
while (bot < top)
{
sym = BLOCK_SYM (block, bot);
if (SYMBOL_MATCHES_NAME (sym, name))
return sym;
if (SYMBOL_NAMESPACE (sym) == namespace &&
SYMBOL_MATCHES_NAME (sym, name))
{
return sym;
}
bot++;
}
}