[Lldb-commits] [lldb] [lldb-dap][windows] fix a race condition in runInTerminal mode (PR #193773)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 24 06:50:22 PDT 2026
================
@@ -139,16 +139,20 @@ RunInTerminal(DAP &dap, const protocol::LaunchRequestArguments &arguments) {
std::future<lldb::SBError> did_attach_message_success =
comm_channel.NotifyDidAttach();
+#ifndef _WIN32
// We just attached to the runInTerminal launcher, which was waiting to be
// attached. We now resume it, so it can receive the didAttach notification
// and then perform the exec. Upon continuing, the debugger will stop the
// process right in the middle of the exec. To the user, what we are doing is
// transparent, as they will only be able to see the process since the exec,
// completely unaware of the preparatory work.
+ //
+ // On Windows, the debuggee itself is waiting to be attached to. There is no
+ // need to continue.
----------------
charles-zablit wrote:
Fixed, thanks
https://github.com/llvm/llvm-project/pull/193773
More information about the lldb-commits
mailing list