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