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 llvm::StringRef GetPluginNameStatic() { return "remote-macosx"; }
33 
34   static llvm::StringRef GetDescriptionStatic();
35 
36   llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
37 
38   llvm::StringRef GetDescription() override { return GetDescriptionStatic(); }
39 
40   lldb_private::Status
41   GetFileWithUUID(const lldb_private::FileSpec &platform_file,
42                   const lldb_private::UUID *uuid_ptr,
43                   lldb_private::FileSpec &local_file) override;
44 
45   std::vector<lldb_private::ArchSpec> GetSupportedArchitectures() override;
46 
47 protected:
48   llvm::StringRef GetDeviceSupportDirectoryName() override;
49   llvm::StringRef GetPlatformName() override;
50 };
51 
52 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEMACOSX_H
53