Refactor complaint thread-safety approach
authorTom Tromey <tom@tromey.com>
Sat, 24 Dec 2022 15:40:48 +0000 (08:40 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 9 Jan 2024 01:40:21 +0000 (18:40 -0700)
commit54b815ddb428944a70694e3767a0fadbdd9ca9ea
tree30b304f9c78e77d4a7f75688349366925bec698a
parentda0e2ac4f7c34114da60178b4077cf6410618353
Refactor complaint thread-safety approach

This patch changes the way complaint works in a background thread.
The new approach requires installing a complaint interceptor in each
worker, and then the resulting complaints are treated as one of the
results of the computation.  This change is needed for a subsequent
patch, where installing a complaint interceptor around a parallel-for
is no longer a viable approach.
gdb/complaints.c
gdb/complaints.h
gdb/defs.h
gdb/dwarf2/read.c
gdb/top.c