]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove expand_symtabs_matching
authorTom Tromey <tom@tromey.com>
Sun, 8 Dec 2024 01:11:03 +0000 (18:11 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:07:57 +0000 (16:07 -0600)
The last caller of the global expand_symtabs_matching function has
been changed, so now we can remove this function.

Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/symfile.c
gdb/symfile.h

index 15e9ed3bb6b26bd8ff4419e235255da6f1ef11c6..98cb63788c06df2733d404e05d8743a91d7c1c88 100644 (file)
@@ -3755,31 +3755,6 @@ symfile_free_objfile (struct objfile *objfile)
   objfile->pspace ()->remove_target_sections (objfile);
 }
 
-/* Wrapper around the quick_symbol_functions expand_symtabs_matching "method".
-   Expand all symtabs that match the specified criteria.
-   See quick_symbol_functions.expand_symtabs_matching for details.  */
-
-bool
-expand_symtabs_matching (expand_symtabs_file_matcher file_matcher,
-                        const lookup_name_info &lookup_name,
-                        expand_symtabs_symbol_matcher symbol_matcher,
-                        expand_symtabs_expansion_listener expansion_notify,
-                        block_search_flags search_flags,
-                        domain_search_flags domain,
-                        expand_symtabs_lang_matcher lang_matcher)
-{
-  for (objfile *objfile : current_program_space->objfiles ())
-    if (!objfile->expand_symtabs_matching (file_matcher,
-                                          &lookup_name,
-                                          symbol_matcher,
-                                          expansion_notify,
-                                          search_flags,
-                                          domain,
-                                          lang_matcher))
-      return false;
-  return true;
-}
-
 /* Wrapper around the quick_symbol_functions map_symbol_filenames "method".
    Map function FUN over every file.
    See quick_symbol_functions.map_symbol_filenames for details.  */
index ee9bc11a19d13717a8df69f9f56ce938ea9a3458..06509a61d03fd955048d00d01827d54c85b8b7d6 100644 (file)
@@ -345,15 +345,6 @@ symfile_segment_data_up get_symfile_segment_data (bfd *abfd);
 
 extern scoped_restore_tmpl<int> increment_reading_symtab (void);
 
-bool expand_symtabs_matching
-  (expand_symtabs_file_matcher file_matcher,
-   const lookup_name_info &lookup_name,
-   expand_symtabs_symbol_matcher symbol_matcher,
-   expand_symtabs_expansion_listener expansion_notify,
-   block_search_flags search_flags,
-   domain_search_flags kind,
-   expand_symtabs_lang_matcher lang_matcher = nullptr);
-
 void map_symbol_filenames (symbol_filename_listener fun, bool need_fullname);
 
 /* Target-agnostic function to load the sections of an executable into memory.