diff options
Diffstat (limited to 'gdb/block.c')
-rw-r--r-- | gdb/block.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/block.c b/gdb/block.c index 0bdd0f9..079053c 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -679,17 +679,14 @@ better_symbol (struct symbol *a, struct symbol *b, non-encoded names tested for a match. */ struct symbol * -block_lookup_symbol (const struct block *block, const char *name, - symbol_name_match_type match_type, +block_lookup_symbol (const struct block *block, const lookup_name_info &name, const domain_search_flags domain) { - lookup_name_info lookup_name (name, match_type); - if (!block->function ()) { struct symbol *other = NULL; - for (struct symbol *sym : block_iterator_range (block, &lookup_name)) + for (struct symbol *sym : block_iterator_range (block, &name)) { /* See comment related to PR gcc/debug/91507 in block_lookup_symbol_primary. */ @@ -717,7 +714,7 @@ block_lookup_symbol (const struct block *block, const char *name, struct symbol *sym_found = NULL; - for (struct symbol *sym : block_iterator_range (block, &lookup_name)) + for (struct symbol *sym : block_iterator_range (block, &name)) { if (sym->matches (domain)) { |