Pre-read DWZ section data
authorTom Tromey <tom@tromey.com>
Fri, 10 Nov 2023 22:52:19 +0000 (15:52 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 9 Jan 2024 01:40:21 +0000 (18:40 -0700)
commita37fbcfec5a2f6ac7ccaf508b445f313a55ab7e0
tree638af193748831b58f3af40b9e7b3fabecdd7e5a
parent3c2f688e70997bcdc856578adbed492a0b581fa9
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/dwz.c
gdb/dwarf2/dwz.h
gdb/dwarf2/macro.c
gdb/dwarf2/read-debug-names.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h