[Lldb-commits] [lldb] [lldb] [Process/FreeBSDKernel] Select paniced thread automatically (PR #178069)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 30 01:50:55 PST 2026


================
@@ -242,9 +242,14 @@ bool ProcessFreeBSDKernel::DoUpdateThreadList(ThreadList &old_thread_list,
           thread_desc += llvm::formatv(" (on CPU {0})", oncpu);
         }
 
-        ThreadSP thread_sp{
-            new ThreadFreeBSDKernel(*this, tid, pcb_addr, thread_desc)};
-        new_thread_list.AddThread(thread_sp);
+        auto thread =
+            new ThreadFreeBSDKernel(*this, tid, pcb_addr, thread_desc);
+
+        if (tid == dumptid) {
+          thread->SetIsCrashedThread(true);
+        }
----------------
DavidSpickett wrote:

https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

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


More information about the lldb-commits mailing list