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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 2 02:50:59 PST 2026


================
@@ -225,11 +235,23 @@ bool ProcessFreeBSDKernelCore::DoUpdateThreadList(ThreadList &old_thread_list,
     // the end of the list, so we have to walk it backwards. First collect all
     // the processes in the list order.
     std::vector<lldb::addr_t> process_addrs;
-    for (lldb::addr_t proc =
-             ReadPointerFromMemory(FindSymbol("allproc"), error);
-         proc != 0 && proc != LLDB_INVALID_ADDRESS;
-         proc = ReadPointerFromMemory(proc + offset_p_list, error)) {
-      process_addrs.push_back(proc);
+
+    lldb::addr_t zombproc_addr = FindSymbol("zombproc");
----------------
DavidSpickett wrote:

I don't think we have a way to add arbitrary notes to processes. In theory the `process status` command could surface something like this but anyway, not something for this PR.

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


More information about the lldb-commits mailing list