[lldb] [llvm] [lldb][Process/FreeBSDKernelCore] Improve DoUpdateThreadList() (PR #183981)

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 02:27:37 PST 2026


================
@@ -217,19 +220,33 @@ bool ProcessFreeBSDKernelCore::DoUpdateThreadList(ThreadList &old_thread_list,
         ReadSignedIntegerFromMemory(FindSymbol("pcb_size"), 4, -1, error);
     lldb::addr_t stoppcbs = FindSymbol("stoppcbs");
 
-    // from FreeBSD sys/param.h
+    // Read stopped_cpus bitmask and mp_maxid for CPU validation
+    lldb::addr_t stopped_cpus = FindSymbol("stopped_cpus");
+
+    // from sys/kern/subr_smp.c
----------------
DavidSpickett wrote:

Comments should be sentences, see https://llvm.org/docs/CodingStandards.html#commenting. Also applies to the comment above.

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


More information about the llvm-commits mailing list