Add deferred_warnings parameter to read_addrmap_from_aranges
authorTom Tromey <tom@tromey.com>
Sun, 10 Dec 2023 21:16:06 +0000 (14:16 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 9 Jan 2024 01:40:21 +0000 (18:40 -0700)
commit8e279fda0f725500c8f84a8b2ed56b0ee8d00ce0
tree266a39de85287280db4ad3a9cc77f3eaf3c5b384
parent54b815ddb428944a70694e3767a0fadbdd9ca9ea
Add deferred_warnings parameter to read_addrmap_from_aranges

When DWARF reading is done in the background,
read_addrmap_from_aranges will be called from a worker thread.
Because warnings can't be emitted from these threads, this patch adds
a new deferred_warnings parameter to the function, letting the caller
control exactly how the warnings are emitted.
gdb/dwarf2/aranges.c
gdb/dwarf2/aranges.h
gdb/dwarf2/read-debug-names.c
gdb/dwarf2/read.c
gdb/utils.h