[Lldb-commits] [lldb] [vscode-lldb] Fix race condition when changing lldb-dap arguments (PR #151828)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 5 07:57:37 PDT 2025


================
@@ -39,8 +39,10 @@ export class LLDBDapServer implements vscode.Disposable {
       const process = child_process.spawn(dapPath, dapArgs, options);
       process.on("error", (error) => {
         reject(error);
-        this.serverProcess = undefined;
-        this.serverInfo = undefined;
+        if (this.serverProcess === process) {
----------------
walter-erquinigo wrote:

Please create a `clean` function that can be invoked from both places instead of duplicating code

https://github.com/llvm/llvm-project/pull/151828


More information about the lldb-commits mailing list