[Lldb-commits] [lldb] [lldb-dap] Spawn debug sever in the build directory. (PR #216078)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 13 08:12:18 PDT 2026
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/216078
The debugserver may create files such as the socket in the working directory.
>From cd7115cdeff86226cc687ae6d0f5bbc3836acdc8 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Thu, 13 Aug 2026 16:09:45 +0100
Subject: [PATCH] [lldb-dap] Spawn debug sever in the build directory.
The debugserver may create files such as the socket in the
working directory.
---
.../API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
index 22129996ddd3e..6c44781ff81f5 100644
--- a/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
+++ b/lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
@@ -51,6 +51,7 @@ def test_by_port(self):
str(self.get_debug_server_path()),
debug_server_args,
install_remote=False,
+ cwd=self.getBuildDir(),
)
# Read the port number from the debug server pipe.
@@ -108,7 +109,9 @@ def test_by_illegal_port(self):
if debug_server.stem == "lldb-server":
server_args = ["gdbserver", *server_args]
- self.spawnSubprocess(str(debug_server), server_args, install_remote=False)
+ self.spawnSubprocess(
+ str(debug_server), server_args, install_remote=False, cwd=self.getBuildDir()
+ )
pending = session.initialize_and_launch(
AttachArgs(
More information about the lldb-commits
mailing list