commit | d61933410868ff2dd52a896520a2b620d35f3615 | [log] [tgz] |
---|---|---|
author | Tom de Vries <tdevries@suse.de> | Wed Feb 21 10:46:08 2024 +0100 |
committer | Tom de Vries <tdevries@suse.de> | Wed Feb 21 10:46:08 2024 +0100 |
tree | f4af087717b49eb60a913be55f189f8d53ce6fee | |
parent | 84a227694d7b97bb4d09786dcfcc3d7c0ca16d4f [diff] |
[gdb/dap] Make dap log printing thread-safe I read that printing from different python threads is thread-unsafe, and I noticed that the dap log printing is used from different threads, but doesn't take care to make the printing thread-safe. Fix this by using a lock to access LoggingParam.log_file. Tested on aarch64-linux. Approved-By: Tom Tromey <tom@tromey.com>