[Lldb-commits] [lldb] [lldb-dap] Add missing key for capabilities	event. (PR #142751)
    Ebuka Ezike via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Wed Jun  4 02:19:52 PDT 2025
    
    
  
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/142751
fixes the failed tests on arch64.
complements #142439
>From ed06cb782cca2a7433ae2dc81e1838009ca6e6d8 Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Wed, 4 Jun 2025 10:18:54 +0100
Subject: [PATCH] [lldb-dap] add missing key for capabilities event.
fixes the failed tests on arch64.
complements #142439
---
 lldb/tools/lldb-dap/EventHelper.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
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": {
    
    
More information about the lldb-commits
mailing list