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 liblldb_PlatformRemoteAppleBridge_h_ 10 #define liblldb_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 ~PlatformRemoteAppleBridge() override = default; 25 26 // Class Functions 27 static lldb::PlatformSP CreateInstance(bool force, 28 const lldb_private::ArchSpec *arch); 29 30 static void Initialize(); 31 32 static void Terminate(); 33 34 static lldb_private::ConstString GetPluginNameStatic(); 35 36 static const char *GetDescriptionStatic(); 37 38 // lldb_private::PluginInterface functions 39 lldb_private::ConstString GetPluginName() override { 40 return GetPluginNameStatic(); 41 } 42 43 uint32_t GetPluginVersion() override { return 1; } 44 45 // lldb_private::Platform functions 46 47 const char *GetDescription() override { return GetDescriptionStatic(); } 48 49 bool GetSupportedArchitectureAtIndex(uint32_t idx, 50 lldb_private::ArchSpec &arch) override; 51 52 protected: 53 54 // lldb_private::PlatformRemoteDarwinDevice functions 55 56 void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override; 57 58 std::string GetPlatformName () override; 59 60 private: 61 DISALLOW_COPY_AND_ASSIGN(PlatformRemoteAppleBridge); 62 }; 63 64 #endif // liblldb_PlatformRemoteAppleBridge_h_ 65