[Lldb-commits] [lldb] [lldb-dap] Set stopped event text for signals and instrumentation (PR #222394)

Sergei Druzhkov via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 9 10:58:02 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;
----------------
DrSergei wrote:

Maybe we can use `SBThread::GetCurrentException` like in [`exceptionInfoRequestHandler`](https://github.com/llvm/llvm-project/blob/main/lldb/tools/lldb-dap/Handler/ExceptionInfoRequestHandler.cpp#L284) to provide more information in this case. As far as I know it works only with Obj-C, so I am not sure about usefulness

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


More information about the lldb-commits mailing list