[Lldb-commits] [lldb] [lldb][AIX] Extract CPU type and set up process architecture accordingly (PR #189910)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 1 02:00:08 PDT 2026
================
@@ -100,10 +132,7 @@ static bool GetExePathAndIds(::pid_t pid, ProcessInstanceInfo &process_info) {
return false;
process_info.GetExecutableFile().SetFile(PathRef, FileSpec::Style::native);
- ArchSpec arch_spec = ArchSpec();
- arch_spec.SetArchitecture(eArchTypeXCOFF, llvm::XCOFF::TCPU_PPC64,
- LLDB_INVALID_CPUTYPE, llvm::Triple::AIX);
- process_info.SetArchitecture(arch_spec);
+ process_info.SetArchitecture(GetXCOFFProcessCPUType(PathRef));
----------------
DavidSpickett wrote:
If this gets an empty arch spec, should we return false?
https://github.com/llvm/llvm-project/pull/189910
More information about the lldb-commits
mailing list