[Lldb-commits] [lldb] [lldb][Windows] Keep the process info when the parent pid lookup fails (PR #228455)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 6 06:46:14 PDT 2026
https://github.com/charles-zablit updated https://github.com/llvm/llvm-project/pull/228455
>From 91b503e2189e3c8e24657ff6ac605cb36a77dd1f Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Fri, 25 Sep 2026 22:36:10 +0100
Subject: [PATCH] [lldb][Windows] Keep the process info when the parent pid
lookup fails
---
lldb/source/Host/windows/Host.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lldb/source/Host/windows/Host.cpp b/lldb/source/Host/windows/Host.cpp
index a9f6e65e38c10..ebb978a05159f 100644
--- a/lldb/source/Host/windows/Host.cpp
+++ b/lldb/source/Host/windows/Host.cpp
@@ -200,21 +200,21 @@ bool Host::GetProcessInfo(lldb::pid_t pid, ProcessInstanceInfo &process_info) {
AutoHandle snapshot(CreateProcessSnapshot());
if (!snapshot.IsValid())
- return false;
+ return true;
PROCESSENTRY32W pe;
pe.dwSize = sizeof(PROCESSENTRY32W);
if (!Process32FirstW(snapshot.get(), &pe))
- return false;
+ return true;
do {
if (pe.th32ProcessID == pid) {
process_info.SetParentProcessID(pe.th32ParentProcessID);
- return true;
+ break;
}
} while (Process32NextW(snapshot.get(), &pe));
- return false;
+ return true;
}
llvm::Expected<HostThread> Host::StartMonitoringChildProcess(
More information about the lldb-commits
mailing list