================
@@ -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:
Could you explain how this results in this thread being automatically selected?
Is it simply that the other threads don't have a stop reason because they
were/are running when the process is stopped / the dump is taken?
Please add this explanation to end of the PR description too.
https://github.com/llvm/llvm-project/pull/178069
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits