[Lldb-commits] [lldb] 0132fac - [lldb-dap] Spawn debug sever in the build directory. (#216078)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 14 05:16:33 PDT 2026
Author: Ebuka Ezike
Date: 2026-08-14T13:16:28+01:00
New Revision: 0132fac13fdc5d3ec08ee71ab7bf1626152c7198
URL: https://github.com/llvm/llvm-project/commit/0132fac13fdc5d3ec08ee71ab7bf1626152c7198
DIFF: https://github.com/llvm/llvm-project/commit/0132fac13fdc5d3ec08ee71ab7bf1626152c7198.diff
LOG: [lldb-dap] Spawn debug sever in the build directory. (#216078)
The debugserver may create files such as the socket in the working
directory.
Added:
Modified:
lldb/test/API/tools/lldb-dap/attach/TestDAP_attachByPortNum.py
Removed:
################################################################################
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