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