xref: /openbsd-src/gnu/llvm/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h (revision 1a8dbaac879b9f3335ad7fb25429ce63ac1d6bac)
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 liblldb_PlatformRemoteiOS_h_
10 #define liblldb_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   ~PlatformRemoteiOS() override = default;
24 
25   // Class Functions
26   static lldb::PlatformSP CreateInstance(bool force,
27                                          const lldb_private::ArchSpec *arch);
28 
29   static void Initialize();
30 
31   static void Terminate();
32 
33   static lldb_private::ConstString GetPluginNameStatic();
34 
35   static const char *GetDescriptionStatic();
36 
37   // lldb_private::Platform functions
38 
39   const char *GetDescription() override { return GetDescriptionStatic(); }
40 
41   // lldb_private::PluginInterface functions
42   lldb_private::ConstString GetPluginName() override {
43     return GetPluginNameStatic();
44   }
45 
46   uint32_t GetPluginVersion() override { return 1; }
47 
48   bool GetSupportedArchitectureAtIndex(uint32_t idx,
49                                        lldb_private::ArchSpec &arch) override;
50 
51 protected:
52 
53   // lldb_private::PlatformRemoteDarwinDevice functions
54 
55   void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override;
56 
57   std::string GetPlatformName () override;
58 
59 private:
60   DISALLOW_COPY_AND_ASSIGN(PlatformRemoteiOS);
61 };
62 
63 #endif // liblldb_PlatformRemoteiOS_h_
64