LLDB mainline
PlatformAIX.h
Go to the documentation of this file.
1//===-- PlatformAIX.h -----------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_PLATFORM_AIX_PLATFORMAIX_H
10#define LLDB_SOURCE_PLUGINS_PLATFORM_AIX_PLATFORMAIX_H
11
14
16
17class PlatformAIX : public PlatformPOSIX {
18public:
19 PlatformAIX(bool is_host);
20
21 static void Initialize();
22
23 static void Terminate();
24
25 // lldb_private::PluginInterface functions
26 static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
27
28 static llvm::StringRef GetPluginNameStatic(bool is_host) {
29 return is_host ? Platform::GetHostPlatformName() : "remote-AIX";
30 }
31
32 static llvm::StringRef GetPluginDescriptionStatic(bool is_host);
33
34 llvm::StringRef GetPluginName() override {
36 }
37
38 // lldb_private::Platform functions
39 llvm::StringRef GetDescription() override {
41 }
42
43 void GetStatus(Stream &strm) override;
44
45 std::vector<ArchSpec>
46 GetSupportedArchitectures(const ArchSpec &process_host_arch) override;
47
48 void CalculateTrapHandlerSymbolNames() override;
49
50 lldb::UnwindPlanSP GetTrapHandlerUnwindPlan(const llvm::Triple &triple,
51 ConstString name) override;
52
54 lldb::addr_t length, unsigned prot,
55 unsigned flags, lldb::addr_t fd,
56 lldb::addr_t offset) override;
57
58 CompilerType GetSiginfoType(const llvm::Triple &triple) override;
59
60 std::vector<ArchSpec> m_supported_architectures;
61
62private:
63 std::unique_ptr<TypeSystemClang> m_type_system_up;
64};
65
66} // namespace lldb_private::platform_aix
67
68#endif // LLDB_SOURCE_PLUGINS_PLATFORM_AIX_PLATFORMAIX_H
PlatformPOSIX(bool is_host)
Default Constructor.
An architecture specification class.
Definition ArchSpec.h:31
Generic representation of a type in a programming language.
A uniqued constant string class.
Definition ConstString.h:40
bool IsHost() const
Definition Platform.h:503
static const char * GetHostPlatformName()
Definition Platform.cpp:61
A stream class that can stream formatted output to a file.
Definition Stream.h:28
void CalculateTrapHandlerSymbolNames() override
Ask the Platform subclass to fill in the list of trap handler names.
static llvm::StringRef GetPluginNameStatic(bool is_host)
Definition PlatformAIX.h:28
std::vector< ArchSpec > m_supported_architectures
Definition PlatformAIX.h:60
std::vector< ArchSpec > GetSupportedArchitectures(const ArchSpec &process_host_arch) override
Get the platform's supported architectures in the order in which they should be searched.
static llvm::StringRef GetPluginDescriptionStatic(bool is_host)
llvm::StringRef GetDescription() override
Definition PlatformAIX.h:39
CompilerType GetSiginfoType(const llvm::Triple &triple) override
lldb::UnwindPlanSP GetTrapHandlerUnwindPlan(const llvm::Triple &triple, ConstString name) override
Try to get a specific unwind plan for a named trap handler.
llvm::StringRef GetPluginName() override
Definition PlatformAIX.h:34
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch)
std::unique_ptr< TypeSystemClang > m_type_system_up
Definition PlatformAIX.h:63
void GetStatus(Stream &strm) override
Report the current status for this platform.
MmapArgList GetMmapArgumentList(const ArchSpec &arch, lldb::addr_t addr, lldb::addr_t length, unsigned prot, unsigned flags, lldb::addr_t fd, lldb::addr_t offset) override
llvm::SmallVector< lldb::addr_t, 6 > MmapArgList
Definition Platform.h:64
std::shared_ptr< lldb_private::Platform > PlatformSP
std::shared_ptr< lldb_private::UnwindPlan > UnwindPlanSP
uint64_t addr_t
Definition lldb-types.h:80