10#include "lldb/Host/Config.h"
13#include <sys/utsname.h>
53 LLDB_LOG(log,
"force = {0}, arch=({1}, {2})", force,
54 arch ? arch->GetArchitectureName() :
"<null>",
55 arch ? arch->GetTriple().getTriple() :
"<null>");
57 bool create = force || (arch && arch->IsValid() &&
58 arch->GetTriple().getOS() == llvm::Triple::AIX);
59 LLDB_LOG(log,
"create = {0}", create);
68 return "Local AIX user platform plug-in.";
69 return "Remote AIX user platform plug-in.";
78 default_platform_sp->SetSystemArchitecture(HostInfo::GetArchitecture());
98 ArchSpec hostArch = HostInfo::GetArchitecture(HostInfo::eArchKindDefault);
126 strm.
Printf(
" Kernel: %s\n", un.sysname);
127 strm.
Printf(
" Release: %s\n", un.release);
128 strm.
Printf(
" Version: %s\n", un.version);
142 addr_t length,
unsigned prot,
143 unsigned flags,
addr_t fd,
152 MmapArgList args({addr, length, prot, flags_platform, fd, offset});
#define LLDB_LOG(log,...)
The LLDB_LOG* macros defined below are the way to emit log messages.
#define LLDB_PLUGIN_DEFINE(PluginName)
An architecture specification class.
Generic representation of a type in a programming language.
A uniqued constant string class.
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
llvm::SmallVector< lldb::addr_t, 6 > MmapArgList
std::shared_ptr< lldb_private::Platform > PlatformSP
std::shared_ptr< lldb_private::UnwindPlan > UnwindPlanSP