88
99#include " PlatformAIX.h"
1010#include " lldb/Host/Config.h"
11-
1211#include < cstdio>
1312#if LLDB_ENABLE_POSIX
1413#include < sys/utsname.h>
1514#endif
16-
1715#include " Utility/ARM64_DWARF_Registers.h"
1816#include " lldb/Core/Debugger.h"
1917#include " lldb/Core/PluginManager.h"
2826#include " lldb/Utility/Status.h"
2927#include " lldb/Utility/StreamString.h"
3028
31- // Define these constants from AIX mman.h for use when targeting remote aix
29+ // Use defined constants from AIX mman.h for use when targeting remote aix
3230// systems even when host has different values.
3331
3432#if defined(_AIX)
@@ -43,7 +41,6 @@ LLDB_PLUGIN_DEFINE(PlatformAIX)
4341
4442static uint32_t g_initialize_count = 0;
4543
46-
4744PlatformSP PlatformAIX::CreateInstance (bool force, const ArchSpec *arch) {
4845 Log *log = GetLog (LLDBLog::Platform);
4946 LLDB_LOG (log, " force = {0}, arch=({1}, {2})" , force,
@@ -112,8 +109,8 @@ PlatformAIX::PlatformAIX(bool is_host)
112109 HostInfo::GetArchitecture (HostInfo::eArchKind32));
113110 }
114111 } else {
115- m_supported_architectures = CreateArchList (
116- llvm::Triple::AIX);
112+ m_supported_architectures =
113+ CreateArchList ({llvm::Triple::ppc64}, llvm::Triple::AIX);
117114 }
118115}
119116
@@ -196,14 +193,14 @@ void PlatformAIX::CalculateTrapHandlerSymbolNames() {
196193
197194lldb::UnwindPlanSP
198195PlatformAIX::GetTrapHandlerUnwindPlan (const llvm::Triple &triple,
199- ConstString name) {
196+ ConstString name) {
200197 return {};
201198}
202199
203- MmapArgList PlatformAIX::GetMmapArgumentList (const ArchSpec &arch,
204- addr_t addr, addr_t length ,
205- unsigned prot, unsigned flags ,
206- addr_t fd, addr_t offset) {
200+ MmapArgList PlatformAIX::GetMmapArgumentList (const ArchSpec &arch, addr_t addr,
201+ addr_t length, unsigned prot ,
202+ unsigned flags, addr_t fd ,
203+ addr_t offset) {
207204#if defined(_AIX)
208205 unsigned flags_platform = MAP_VARIABLE | MAP_PRIVATE | MAP_ANONYMOUS;
209206#else
@@ -259,13 +256,14 @@ CompilerType PlatformAIX::GetSiginfoType(const llvm::Triple &triple) {
259256 nullptr , OptionalClangModuleID (), lldb::eAccessPublic, " " ,
260257 llvm::to_underlying (clang::TagTypeKind::Union), lldb::eLanguageTypeC);
261258 ast->StartTagDeclarationDefinition (sigfault_bounds_type);
262- ast->AddFieldToRecordType (sigfault_bounds_type, " _addr_bnd" ,
259+ ast->AddFieldToRecordType (
260+ sigfault_bounds_type, " _addr_bnd" ,
263261 ast->CreateStructForIdentifier (ConstString (),
264262 {
265263 {" _lower" , voidp_type},
266264 {" _upper" , voidp_type},
267265 }),
268- lldb::eAccessPublic, 0 );
266+ lldb::eAccessPublic, 0 );
269267 ast->AddFieldToRecordType (sigfault_bounds_type, " _pkey" , uint_type,
270268 lldb::eAccessPublic, 0 );
271269 ast->CompleteTagDeclarationDefinition (sigfault_bounds_type);
0 commit comments