[Lldb-commits] [lldb] [lldb][Process/FreeBSDKernelCore] Always reconstruct thread list for kvm (PR #188395)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 25 03:23:22 PDT 2026
================
@@ -157,9 +158,10 @@ size_t ProcessFreeBSDKernelCore::DoWriteMemory(lldb::addr_t addr,
bool ProcessFreeBSDKernelCore::DoUpdateThreadList(ThreadList &old_thread_list,
ThreadList &new_thread_list) {
- if (old_thread_list.GetSize(false) == 0) {
+ if (m_is_kvm || old_thread_list.GetSize(false) == 0) {
----------------
DavidSpickett wrote:
I think you are adding this boolean because in future it could be false. So I'm not saying I expect you to not get around to it, but generally it's safer to leave it out until you actually implement the non-kvm version.
Stating your intent in the PR description is good though, so keep that.
If you remove the boolean for now, then you can move the extra comment up above the if and say something like "if we ever support non-kvm then....".
https://github.com/llvm/llvm-project/pull/188395
More information about the lldb-commits
mailing list