diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-11 07:55:42 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:16 -0700 |
commit | 6c0152149476085e6c4c5c812bfc3a06fff7c938 (patch) | |
tree | 176aaa96a5ecfadea04a57996c530bb8ebbc9e95 /gdb/symtab.c | |
parent | 88ff5355adfee1c015ce98f0d79475f53678a7bb (diff) | |
download | fsf-binutils-gdb-6c0152149476085e6c4c5c812bfc3a06fff7c938.zip fsf-binutils-gdb-6c0152149476085e6c4c5c812bfc3a06fff7c938.tar.gz fsf-binutils-gdb-6c0152149476085e6c4c5c812bfc3a06fff7c938.tar.bz2 |
Use domain_search_flags in lookup_global_symbol_language
This changes quick_symbol_functions::lookup_global_symbol_language to
accept domain_search_flags rather than just a domain_enum, and fixes
up the fallout.
To avoid introducing any regressions, any code passing VAR_DOMAIN now
uses SEARCH_VFT.
That is, no visible changes should result from this patch. However,
it sets the stage to refine some searches later on.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 6d24d2f..a973052 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2864,7 +2864,7 @@ basic_lookup_transparent_type (const char *name) bool iterate_over_symbols (const struct block *block, const lookup_name_info &name, - const domain_enum domain, + const domain_search_flags domain, gdb::function_view<symbol_found_callback_ftype> callback) { for (struct symbol *sym : block_iterator_range (block, &name)) @@ -2886,7 +2886,7 @@ bool iterate_over_symbols_terminated (const struct block *block, const lookup_name_info &name, - const domain_enum domain, + const domain_search_flags domain, gdb::function_view<symbol_found_callback_ftype> callback) { if (!iterate_over_symbols (block, name, domain, callback)) @@ -4846,7 +4846,6 @@ global_symbol_searcher::expand_symtabs }, NULL, SEARCH_GLOBAL_BLOCK | SEARCH_STATIC_BLOCK, - UNDEF_DOMAIN, kind); /* Here, we search through the minimal symbol tables for functions and @@ -6502,7 +6501,7 @@ find_main_name (void) [&symbol_found_p, pspace] (objfile *obj) { language lang - = obj->lookup_global_symbol_language ("main", VAR_DOMAIN, + = obj->lookup_global_symbol_language ("main", SEARCH_VFT, &symbol_found_p); if (symbol_found_p) { |