1 //===-- PlatformRemoteAppleBridge.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_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H 10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H 11 12 #include <string> 13 14 #include "lldb/Utility/FileSpec.h" 15 16 #include "llvm/Support/FileSystem.h" 17 18 #include "PlatformRemoteDarwinDevice.h" 19 20 class PlatformRemoteAppleBridge : public PlatformRemoteDarwinDevice { 21 public: 22 PlatformRemoteAppleBridge(); 23 24 // Class Functions 25 static lldb::PlatformSP CreateInstance(bool force, 26 const lldb_private::ArchSpec *arch); 27 28 static void Initialize(); 29 30 static void Terminate(); 31 32 static llvm::StringRef GetPluginNameStatic() { return "remote-bridgeos"; } 33 34 static llvm::StringRef GetDescriptionStatic(); 35 36 // lldb_private::PluginInterface functions 37 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); } 38 39 // lldb_private::Platform functions 40 41 llvm::StringRef GetDescription() override { return GetDescriptionStatic(); } 42 43 bool GetSupportedArchitectureAtIndex(uint32_t idx, 44 lldb_private::ArchSpec &arch) override; 45 46 protected: 47 llvm::StringRef GetDeviceSupportDirectoryName() override; 48 llvm::StringRef GetPlatformName() override; 49 }; 50 51 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H 52