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/symfile.c | |
parent | 88ff5355adfee1c015ce98f0d79475f53678a7bb (diff) | |
download | gdb-6c0152149476085e6c4c5c812bfc3a06fff7c938.zip gdb-6c0152149476085e6c4c5c812bfc3a06fff7c938.tar.gz 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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 065eaf0..17e1a64 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3769,7 +3769,7 @@ expand_symtabs_matching gdb::function_view<expand_symtabs_symbol_matcher_ftype> symbol_matcher, gdb::function_view<expand_symtabs_exp_notify_ftype> expansion_notify, block_search_flags search_flags, - domain_search_flags kind) + domain_search_flags domain) { for (objfile *objfile : current_program_space->objfiles ()) if (!objfile->expand_symtabs_matching (file_matcher, @@ -3777,8 +3777,7 @@ expand_symtabs_matching symbol_matcher, expansion_notify, search_flags, - UNDEF_DOMAIN, - kind)) + domain)) return false; return true; } |