63 const char *arch_name;
69 const char *triple_cstr =
70 arch ? arch->
GetTriple().getTriple().c_str() :
"<null>";
72 LLDB_LOGF(log,
"PlatformRemoteAppleBridge::%s(force=%s, arch={%s,%s})",
73 __FUNCTION__, force ?
"true" :
"false", arch_name, triple_cstr);
77 if (!create && arch && arch->
IsValid()) {
79 case llvm::Triple::aarch64: {
80 const llvm::Triple &triple = arch->
GetTriple();
81 llvm::Triple::VendorType vendor = triple.getVendor();
83 case llvm::Triple::Apple:
91 case llvm::Triple::UnknownVendor:
103#pragma warning(disable : 4065)
105 switch (triple.getOS()) {
106 case llvm::Triple::BridgeOS:
123 LLDB_LOGF(log,
"PlatformRemoteAppleBridge::%s() creating platform",
130 "PlatformRemoteAppleBridge::%s() aborting creation of platform",
137 return "Remote BridgeOS platform plug-in.";
141 const ArchSpec &process_host_arch) {
142 return {
ArchSpec(
"arm64-apple-bridgeos")};
146 return "BridgeOS DeviceSupport";
150 return "BridgeOS.platform";
#define LLDB_LOGF(log,...)
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