From: Tom Tromey Date: Sat, 8 Feb 2025 01:36:58 +0000 (-0700) Subject: Make dw_expand_symtabs_matching_file_matcher static X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ac273ba2afb69212456b4033e480d14f2f2744d;p=thirdparty%2Fbinutils-gdb.git Make dw_expand_symtabs_matching_file_matcher static dw_expand_symtabs_matching_file_matcher is no longer needed outside of read.c, so it can be made static. Acked-By: Simon Marchi --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 5e762f66923..653e63fa826 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -851,6 +851,11 @@ static struct dwarf2_section_info *cu_debug_loc_section (struct dwarf2_cu *cu); static struct dwarf2_section_info *cu_debug_rnglists_section (struct dwarf2_cu *cu, dwarf_tag tag); +static void dw_expand_symtabs_matching_file_matcher + (dwarf2_per_objfile *per_objfile, + auto_bool_vector &cus_to_skip, + expand_symtabs_file_matcher file_matcher); + static void get_scope_pc_bounds (struct die_info *, unrelocated_addr *, unrelocated_addr *, struct dwarf2_cu *); @@ -2030,9 +2035,10 @@ dw2_expand_symtabs_matching_one return true; } -/* See read.h. */ +/* If FILE_MATCHER is non-NULL, update CUS_TO_SKIP as appropriate + based on FILE_MATCHER. */ -void +static void dw_expand_symtabs_matching_file_matcher (dwarf2_per_objfile *per_objfile, auto_bool_vector &cus_to_skip, diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index de6315f6123..0d488c91700 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -1257,14 +1257,6 @@ extern bool dw2_expand_symtabs_matching_one expand_symtabs_expansion_listener expansion_notify, expand_symtabs_lang_matcher lang_matcher); -/* If FILE_MATCHER is non-NULL, update CUS_TO_SKIP as appropriate - based on FILE_MATCHER. */ - -extern void dw_expand_symtabs_matching_file_matcher - (dwarf2_per_objfile *per_objfile, - auto_bool_vector &cus_to_skip, - expand_symtabs_file_matcher file_matcher); - /* Return pointer to string at .debug_str offset STR_OFFSET. */ extern const char *read_indirect_string_at_offset