[Lldb-commits] [lldb] [lldb-dap] Add missing key for capabilities event. (PR #142751)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 4 02:20:25 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

<details>
<summary>Changes</summary>

fixes the failed tests on arch64.

complements #<!-- -->142439

---
Full diff: https://github.com/llvm/llvm-project/pull/142751.diff


1 Files Affected:

- (modified) lldb/tools/lldb-dap/EventHelper.cpp (+3-1) 


``````````diff
diff --git a/lldb/tools/lldb-dap/EventHelper.cpp b/lldb/tools/lldb-dap/EventHelper.cpp
index 0dd0b61b1e2ae..33bc7c2cbef11 100644
--- a/lldb/tools/lldb-dap/EventHelper.cpp
+++ b/lldb/tools/lldb-dap/EventHelper.cpp
@@ -46,7 +46,9 @@ void SendTargetBasedCapabilities(DAP &dap) {
 
   protocol::Event event;
   event.event = "capabilities";
-  event.body = llvm::json::Object{{"supportsStepInTargetsRequest", false}};
+  event.body = llvm::json::Object{
+      {"capabilities",
+       llvm::json::Object{{"supportsStepInTargetsRequest", false}}}};
   dap.Send(event);
 }
 // "ProcessEvent": {

``````````

</details>


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


More information about the lldb-commits mailing list