diff options
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index f38e544..49feea6 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2092,7 +2092,16 @@ std::vector<CORE_ADDR> find_pcs_for_symtab_line typedef bool (symbol_found_callback_ftype) (struct block_symbol *bsym); -void iterate_over_symbols (const struct block *block, +/* Iterate over the symbols named NAME, matching DOMAIN, in BLOCK. + + For each symbol that matches, CALLBACK is called. The symbol is + passed to the callback. + + If CALLBACK returns false, the iteration ends and this function + returns false. Otherwise, the search continues, and the function + eventually returns true. */ + +bool iterate_over_symbols (const struct block *block, const lookup_name_info &name, const domain_enum domain, gdb::function_view<symbol_found_callback_ftype> callback); |