1 //===-- PlatformRemoteAppleWatch.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_PlatformRemoteAppleWatch_h_ 11 #define liblldb_PlatformRemoteAppleWatch_h_ 12 13 // C Includes 14 // C++ Includes 15 #include <string> 16 #include <vector> 17 18 // Other libraries and framework includes 19 // Project includes 20 #include "lldb/Utility/FileSpec.h" 21 22 #include "PlatformRemoteDarwinDevice.h" 23 24 #include "llvm/Support/FileSystem.h" 25 26 class PlatformRemoteAppleWatch : public PlatformRemoteDarwinDevice { 27 public: 28 PlatformRemoteAppleWatch(); 29 30 ~PlatformRemoteAppleWatch() override = default; 31 32 //------------------------------------------------------------ 33 // Class Functions 34 //------------------------------------------------------------ 35 static lldb::PlatformSP CreateInstance(bool force, 36 const lldb_private::ArchSpec *arch); 37 38 static void Initialize(); 39 40 static void Terminate(); 41 42 static lldb_private::ConstString GetPluginNameStatic(); 43 44 static const char *GetDescriptionStatic(); 45 46 //------------------------------------------------------------ 47 // lldb_private::Platform functions 48 //------------------------------------------------------------ 49 50 const char *GetDescription() override { return GetDescriptionStatic(); } 51 52 //------------------------------------------------------------ 53 // lldb_private::PluginInterface functions 54 //------------------------------------------------------------ 55 lldb_private::ConstString GetPluginName() override { 56 return GetPluginNameStatic(); 57 } 58 59 uint32_t GetPluginVersion() override { return 1; } 60 61 //------------------------------------------------------------ 62 // lldb_private::Platform functions 63 //------------------------------------------------------------ 64 65 bool GetSupportedArchitectureAtIndex(uint32_t idx, 66 lldb_private::ArchSpec &arch) override; 67 68 protected: 69 70 //------------------------------------------------------------ 71 // lldb_private::PlatformRemoteDarwinDevice functions 72 //------------------------------------------------------------ 73 74 void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override; 75 76 std::string GetPlatformName () override; 77 78 private: 79 DISALLOW_COPY_AND_ASSIGN(PlatformRemoteAppleWatch); 80 }; 81 82 #endif // liblldb_PlatformRemoteAppleWatch_h_ 83