Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lldb][AIX] HostInfoAIX Support #117906

Merged
merged 6 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions lldb/include/lldb/Host/aix/HostInfoAIX.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//===-- HostInfoAIX.h -----------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLDB_HOST_AIX_HOSTINFOAIX_H_
#define LLDB_HOST_AIX_HOSTINFOAIX_H_

#include "lldb/Host/posix/HostInfoPosix.h"
#include "lldb/Utility/FileSpec.h"

namespace lldb_private {

class HostInfoAIX : public HostInfoPosix {
friend class HostInfoBase;

public:
static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
static void Terminate();

static FileSpec GetProgramFileSpec();
};
} // namespace lldb_private

#endif // LLDB_HOST_AIX_HOSTINFOAIX_H_
5 changes: 5 additions & 0 deletions lldb/source/Host/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ else()
openbsd/Host.cpp
openbsd/HostInfoOpenBSD.cpp
)

elseif (CMAKE_SYSTEM_NAME MATCHES "AIX")
add_host_subdirectory(aix
aix/HostInfoAIX.cpp
)
endif()
endif()

Expand Down
22 changes: 22 additions & 0 deletions lldb/source/Host/aix/HostInfoAIX.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//===-- HostInfoAIX.cpp -------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "lldb/Host/aix/HostInfoAIX.h"

using namespace lldb_private;

void HostInfoAIX::Initialize(SharedLibraryDirectoryHelper *helper) {
HostInfoPosix::Initialize(helper);
}

void HostInfoAIX::Terminate() { HostInfoBase::Terminate(); }

FileSpec HostInfoAIX::GetProgramFileSpec() {
static FileSpec g_program_filespec;
return g_program_filespec;
}
DavidSpickett marked this conversation as resolved.
Show resolved Hide resolved
Loading