diff options
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index d6dc323..9508dcf 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2771,10 +2771,7 @@ iterate_over_symbols (const struct block *block, const domain_enum domain, gdb::function_view<symbol_found_callback_ftype> callback) { - struct block_iterator iter; - struct symbol *sym; - - ALL_BLOCK_SYMBOLS_WITH_NAME (block, name, iter, sym) + for (struct symbol *sym : block_iterator_range (block, &name)) { if (symbol_matches_domain (sym->language (), sym->domain (), domain)) { |