mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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:
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user