1 //===-- PlatformRemoteMacOSX.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_PLATFORMREMOTEMACOSX_H 10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H 11 12 #include <string> 13 14 #include "lldb/Utility/FileSpec.h" 15 16 #include "llvm/Support/FileSystem.h" 17 18 #include "PlatformMacOSX.h" 19 #include "PlatformRemoteDarwinDevice.h" 20 21 class PlatformRemoteMacOSX : public virtual PlatformRemoteDarwinDevice { 22 public: 23 PlatformRemoteMacOSX(); 24 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 lldb_private::ConstString GetPluginNameStatic(); 33 34 static const char *GetDescriptionStatic(); 35 GetPluginName()36 lldb_private::ConstString GetPluginName() override { 37 return GetPluginNameStatic(); 38 } 39 GetPluginVersion()40 uint32_t GetPluginVersion() override { return 1; } 41 GetDescription()42 const char *GetDescription() override { return GetDescriptionStatic(); } 43 44 lldb_private::Status 45 GetFileWithUUID(const lldb_private::FileSpec &platform_file, 46 const lldb_private::UUID *uuid_ptr, 47 lldb_private::FileSpec &local_file) override; 48 49 bool GetSupportedArchitectureAtIndex(uint32_t idx, 50 lldb_private::ArchSpec &arch) override; 51 52 protected: 53 llvm::StringRef GetDeviceSupportDirectoryName() override; 54 llvm::StringRef GetPlatformName() override; 55 56 private: 57 uint32_t m_num_arm_arches = 0; 58 }; 59 60 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H 61