Add a couple of bfd_cache_close calls
authorTom Tromey <tom@tromey.com>
Sat, 11 Nov 2023 16:46:44 +0000 (09:46 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 9 Jan 2024 01:40:21 +0000 (18:40 -0700)
commita2eb3f887cba11c87b625dbbd058557025e57596
tree88a2c18a21f44c157d2e60810cddc0e3f16be19b
parenta37fbcfec5a2f6ac7ccaf508b445f313a55ab7e0
Add a couple of bfd_cache_close calls

This adds a couple of calls to bfd_cache_close at points where a BFD
isn't actively needed by gdb.  Normally at these points, all the
needed section data is already mapped, so we can simply close the file
descriptor.  This is harmless at worst, because if this is needed
after all, the BFD file descriptor cache will reopen it.
gdb/dwarf2/read.c