[Lldb-commits] [lldb] [lldb][AIX] get host info for AIX (PR #134354)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 22 03:32:02 PDT 2025
================
@@ -40,8 +40,9 @@ TEST_F(HostTest, GetProcessInfo) {
triple.getEnvironment() == llvm::Triple::EnvironmentType::Android));
ProcessInstanceInfo Info;
+#ifndef _AIX
----------------
labath wrote:
In that case, what would say to filtering this process out inside the AIX implementation? (basically add something like `if (pid == 0) return false;`)
In theory, I suppose that someone may want to get the process information of the process zero, but i doubt it's an important use case since we normally call this while attaching to a process. And it would ensure that `GetProcessInfo(LLDB_INVALID_PROCESS_ID)` behaves the same way everywhere (we could also change this test to use the LLDB_INVALID_PROCESS_ID macro to make it clear that it's checking for an "invalid" process).
https://github.com/llvm/llvm-project/pull/134354
More information about the lldb-commits
mailing list