58 const char *arch_name;
64 const char *triple_cstr =
65 arch ? arch->
GetTriple().getTriple().c_str() :
"<null>";
67 LLDB_LOGF(log,
"PlatformRemoteiOS::%s(force=%s, arch={%s,%s})",
68 __FUNCTION__, force ?
"true" :
"false", arch_name, triple_cstr);
72 if (!create && arch && arch->
IsValid()) {
74 case llvm::Triple::arm:
75 case llvm::Triple::aarch64:
76 case llvm::Triple::thumb: {
77 const llvm::Triple &triple = arch->
GetTriple();
78 llvm::Triple::VendorType vendor = triple.getVendor();
80 case llvm::Triple::Apple:
88 case llvm::Triple::UnknownVendor:
97 switch (triple.getOS()) {
98 case llvm::Triple::Darwin:
100 case llvm::Triple::IOS:
117 LLDB_LOGF(log,
"PlatformRemoteiOS::%s() creating platform", __FUNCTION__);
123 LLDB_LOGF(log,
"PlatformRemoteiOS::%s() aborting creation of platform",
130 return "Remote iOS platform plug-in.";
138 const ArchSpec &process_host_arch) {
139 std::vector<ArchSpec> result;
152 return "iOS DeviceSupport";
156 return "iPhoneOS.platform";
#define LLDB_LOGF(log,...)
#define LLDB_PLUGIN_DEFINE(PluginName)
An architecture specification class.
bool IsValid() const
Tests if this ArchSpec is valid.
llvm::Triple & GetTriple()
Architecture triple accessor.
llvm::Triple::ArchType GetMachine() const
Returns a machine family for the current architecture.
bool TripleVendorWasSpecified() const
const char * GetArchitectureName() const
Returns a static string representing the current architecture.
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
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.
std::shared_ptr< lldb_private::Platform > PlatformSP