aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-03-21 08:35:09 -0600
committerTom Tromey <tromey@adacore.com>2023-03-24 07:30:09 -0600
commit4460691252d5c345f0b34ac366639df23c687832 (patch)
tree356ee9d7adf9463aed72394489681d8740878c5b /libctf
parentef1398987a132769779679fd9ffd353dce840f95 (diff)
downloadgdb-4460691252d5c345f0b34ac366639df23c687832.zip
gdb-4460691252d5c345f0b34ac366639df23c687832.tar.gz
gdb-4460691252d5c345f0b34ac366639df23c687832.tar.bz2
Fix race in DAP startup
Internal AdaCore DAP testing on Windows has had occasional failures that show: assert threading.current_thread() is _dap_thread I think this is a race in DAP startup: the _dap_thread global is only set on return from start_thread, but it seems possible that the thread itself could already run and encounter a @in_dap_thread decorator. This patch fixes the problem by setting the global before running any of the code in the new thread. This also lets us remove a FIXME.
Diffstat (limited to 'libctf')
0 files changed, 0 insertions, 0 deletions