[Lldb-commits] [lldb] [lldb-dap] Set stopped event text for signals and instrumentation (PR #222394)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 9 17:08:46 PDT 2026
================
@@ -212,10 +245,17 @@ static void SendStoppedEvent(DAP &dap, lldb::SBThread &thread, bool on_entry,
body.hitBreakpointIds.push_back(bp_id);
body.text = llvm::formatv("data breakpoint {0}", bp_id).str();
} break;
+ // DAP lacks stopped reasons for signals and instrumentation.
case lldb::eStopReasonSignal:
+ body.reason = protocol::eStoppedReasonException;
+ body.text = GetSignalName(thread);
+ break;
case lldb::eStopReasonException:
+ body.reason = protocol::eStoppedReasonException;
----------------
jimingham wrote:
That's just because nobody has written the C++ implementation of this. It shouldn't be particularly hard for someone who is familiar with the C++ runtime. The runtime has to know what exception is currently in flight for this thread.
https://github.com/llvm/llvm-project/pull/222394
More information about the lldb-commits
mailing list