[Lldb-commits] [lldb] [lldb-dap] Use structured types for stepInTargets request (PR #142439)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 3 09:27:48 PDT 2025
================
@@ -33,6 +33,23 @@ static void SendThreadExitedEvent(DAP &dap, lldb::tid_t tid) {
dap.SendJSON(llvm::json::Value(std::move(event)));
}
+void SendAdditionalCapabilities(DAP &dap) {
+ if (dap.target.IsValid()) {
+ // FIXME: stepInTargets request is only supported by the x86 architecture
+ // remove when `lldb::InstructionControlFlowKind` is supported by other
+ // architectures
+ const llvm::StringRef target_triple = dap.target.GetTriple();
+ if (!target_triple.starts_with("x86")) {
+ llvm::json::Object event(CreateEventObject("capabilities"));
----------------
ashgti wrote:
You could use `protocol::Event event;`
https://github.com/llvm/llvm-project/pull/142439
More information about the lldb-commits
mailing list