================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to