1 //===-- PlatformRemoteiOS.h -------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef liblldb_PlatformRemoteiOS_h_ 11 #define liblldb_PlatformRemoteiOS_h_ 12 13 // C Includes 14 // C++ Includes 15 #include <string> 16 17 // Other libraries and framework includes 18 // Project includes 19 #include "PlatformRemoteDarwinDevice.h" 20 #include "lldb/Utility/FileSpec.h" 21 22 #include "llvm/Support/FileSystem.h" 23 24 class PlatformRemoteiOS : public PlatformRemoteDarwinDevice { 25 public: 26 PlatformRemoteiOS(); 27 28 ~PlatformRemoteiOS() override = default; 29 30 //------------------------------------------------------------ 31 // Class Functions 32 //------------------------------------------------------------ 33 static lldb::PlatformSP CreateInstance(bool force, 34 const lldb_private::ArchSpec *arch); 35 36 static void Initialize(); 37 38 static void Terminate(); 39 40 static lldb_private::ConstString GetPluginNameStatic(); 41 42 static const char *GetDescriptionStatic(); 43 44 //------------------------------------------------------------ 45 // lldb_private::Platform functions 46 //------------------------------------------------------------ 47 48 const char *GetDescription() override { return GetDescriptionStatic(); } 49 50 //------------------------------------------------------------ 51 // lldb_private::PluginInterface functions 52 //------------------------------------------------------------ 53 lldb_private::ConstString GetPluginName() override { 54 return GetPluginNameStatic(); 55 } 56 57 uint32_t GetPluginVersion() override { return 1; } 58 59 bool GetSupportedArchitectureAtIndex(uint32_t idx, 60 lldb_private::ArchSpec &arch) override; 61 62 protected: 63 64 //------------------------------------------------------------ 65 // lldb_private::PlatformRemoteDarwinDevice functions 66 //------------------------------------------------------------ 67 68 void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override; 69 70 std::string GetPlatformName () override; 71 72 private: 73 DISALLOW_COPY_AND_ASSIGN(PlatformRemoteiOS); 74 }; 75 76 #endif // liblldb_PlatformRemoteiOS_h_ 77