[Lldb-commits] [lldb] [llvm] [lldb][Process/FreeBSDKernelCore] Improve DoUpdateThreadList() (PR #183981)
Minsoo Choo via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 2 09:55:12 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");
----------------
mchoo7 wrote:
I was confused here. `zombproc` is removed and it was used in kgdb to check to determine kernel version (to distinguish if kernel uses old hash proc list or allproc).
https://github.com/llvm/llvm-project/pull/183981
More information about the lldb-commits
mailing list