Only allow QUIT on the main thread
authorTom Tromey <tom@tromey.com>
Tue, 29 Mar 2022 20:36:10 +0000 (14:36 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 30 Mar 2022 19:39:48 +0000 (13:39 -0600)
commit47ccd6b84bdf35688fb1516f06db68462bd24585
treec2fba1dac46a3637842d73a943a7e858c0fb0290
parentcd1c3a45442e8ef68d062215d508c8104a8e008d
Only allow QUIT on the main thread

Pedro pointed out that gdb worker threads should not react to quits.
While I don't think that the new DWARF reader can call QUIT from a
worker thread (and I don't think the existing minsym threading code
can either), it seems safest to address this before checking in the
new code.  This patch arranges for the QUIT macro to only work on the
main thread.
gdb/run-on-main-thread.c
gdb/run-on-main-thread.h
gdb/utils.c