From a37fbcfec5a2f6ac7ccaf508b445f313a55ab7e0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 10 Nov 2023 15:52:19 -0700 Subject: Pre-read DWZ section data This changes the DWZ code to pre-read the section data and somewhat simplify the DWZ API. This makes it easier to add the bfd_cache_close call to the new dwarf2_read_dwz_file function -- after this is done, there shouldn't be a reason to keep the BFD's file descriptor open. --- gdb/dwarf2/read-debug-names.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/dwarf2/read-debug-names.c') diff --git a/gdb/dwarf2/read-debug-names.c b/gdb/dwarf2/read-debug-names.c index 59c49da..e912c2a 100644 --- a/gdb/dwarf2/read-debug-names.c +++ b/gdb/dwarf2/read-debug-names.c @@ -467,7 +467,7 @@ dwarf2_read_debug_names (dwarf2_per_objfile *per_objfile) } } - create_all_units (per_objfile, false); + create_all_units (per_objfile); if (!check_cus_from_debug_names (per_bfd, *map, dwz_map)) { per_bfd->all_units.clear (); -- cgit v1.1