================
@@ -82,4 +83,11 @@ 
ThreadFreeBSDKernel::CreateRegisterContextForFrame(StackFrame *frame) {
   return reg_ctx_sp;
 }
 
-bool ThreadFreeBSDKernel::CalculateStopInfo() { return false; }
+bool ThreadFreeBSDKernel::CalculateStopInfo() {
+  if (m_is_crashed) {
+    // Set stop info for the crashed thread
+    SetStopInfo(StopInfo::CreateStopReasonWithException(*this, "kernel 
panic"));
----------------
DavidSpickett wrote:

I see a comment in ThreadMachCore.cpp:
```
    // Set a stop reason for crashing threads only so that they get selected
    // preferentially.
```
So I think my guess is correct but please confirm.

https://github.com/llvm/llvm-project/pull/178069
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to