[Lldb-commits] [lldb] 17fd0c3 - [lldb][test] Give a directly created lldb-dap session the init commands (#213553)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 3 08:25:30 PDT 2026
Author: Jonas Devlieghere
Date: 2026-08-03T08:25:24-07:00
New Revision: 17fd0c3e29074ed21b3de6cf850d5dc23c702bd0
URL: https://github.com/llvm/llvm-project/commit/17fd0c3e29074ed21b3de6cf850d5dc23c702bd0
DIFF: https://github.com/llvm/llvm-project/commit/17fd0c3e29074ed21b3de6cf850d5dc23c702bd0.diff
LOG: [lldb][test] Give a directly created lldb-dap session the init commands (#213553)
create_debug_adapter passes the commands that carry the configuration
the test suite was invoked with, and a test that builds a
DebugAdapterServer itself got none of them, so that session ran
unconfigured. It matters wherever the suite configures the debugger
through settings, such as pointing a platform at the runtime it
launches.
Added:
Modified:
lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
Removed:
################################################################################
diff --git a/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py b/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
index 1cbda50e07dd5..1debd6c3d07f8 100644
--- a/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
+++ b/lldb/test/API/tools/lldb-dap/server/TestDAP_server.py
@@ -44,7 +44,9 @@ def run_debug_session(
self, connection: str, name: str, *, sleep_seconds_in_middle: float = 0
):
self.dap_server = dap_server.DebugAdapterServer(
- connection=connection, spawn_helper=self.spawnSubprocess
+ connection=connection,
+ init_commands=self.setUpCommands(),
+ spawn_helper=self.spawnSubprocess,
)
program = self.getBuildArtifact("a.out")
source = "main.c"
More information about the lldb-commits
mailing list