PlatformRemoteiOS.h revision f96c883fde04b2ef8733812c16b0a07ad0cc7439
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// C Includes
14// C++ Includes
15// Other libraries and framework includes
16// Project includes
17#include "PlatformDarwin.h"
18
19class PlatformRemoteiOS : public PlatformDarwin
20{
21public:
22
23    //------------------------------------------------------------
24    // Class Functions
25    //------------------------------------------------------------
26    static lldb_private::Platform*
27    CreateInstance ();
28
29    static void
30    Initialize ();
31
32    static void
33    Terminate ();
34
35    static const char *
36    GetPluginNameStatic ();
37
38    static const char *
39    GetShortPluginNameStatic();
40
41    static const char *
42    GetDescriptionStatic();
43
44    //------------------------------------------------------------
45    // Class Methods
46    //------------------------------------------------------------
47    PlatformRemoteiOS ();
48
49    virtual
50    ~PlatformRemoteiOS();
51
52    //------------------------------------------------------------
53    // lldb_private::PluginInterface functions
54    //------------------------------------------------------------
55    virtual const char *
56    GetPluginName()
57    {
58        return GetPluginNameStatic();
59    }
60
61    virtual const char *
62    GetShortPluginName()
63    {
64        return GetShortPluginNameStatic();
65    }
66
67    virtual uint32_t
68    GetPluginVersion()
69    {
70        return 1;
71    }
72
73    //------------------------------------------------------------
74    // lldb_private::Platform functions
75    //------------------------------------------------------------
76    virtual lldb_private::Error
77    ResolveExecutable (const lldb_private::FileSpec &exe_file,
78                       const lldb_private::ArchSpec &arch,
79                       lldb::ModuleSP &module_sp,
80                       const lldb_private::FileSpecList *module_search_paths_ptr);
81
82    virtual const char *
83    GetDescription ()
84    {
85        return GetDescriptionStatic();
86    }
87
88    virtual void
89    GetStatus (lldb_private::Stream &strm);
90
91    virtual lldb_private::Error
92    GetFile (const lldb_private::FileSpec &platform_file,
93             const lldb_private::UUID *uuid_ptr,
94             lldb_private::FileSpec &local_file);
95
96    virtual lldb_private::Error
97    GetSharedModule (const lldb_private::FileSpec &platform_file,
98                     const lldb_private::ArchSpec &arch,
99                     const lldb_private::UUID *uuid_ptr,
100                     const lldb_private::ConstString *object_name_ptr,
101                     off_t object_offset,
102                     lldb::ModuleSP &module_sp,
103                     const lldb_private::FileSpecList *module_search_paths_ptr,
104                     lldb::ModuleSP *old_module_sp_ptr,
105                     bool *did_create_ptr);
106
107    virtual uint32_t
108    FindProcesses (const lldb_private::ProcessInstanceInfoMatch &match_info,
109                   lldb_private::ProcessInstanceInfoList &process_infos);
110
111    virtual bool
112    GetProcessInfo (lldb::pid_t pid,
113                    lldb_private::ProcessInstanceInfo &proc_info);
114
115    virtual bool
116    GetSupportedArchitectureAtIndex (uint32_t idx,
117                                     lldb_private::ArchSpec &arch);
118
119protected:
120    std::string m_device_support_directory_for_os_version;
121    std::string m_build_update;
122    //std::vector<FileSpec> m_device_support_os_dirs;
123
124    const char *
125    GetDeviceSupportDirectoryForOSVersion();
126
127private:
128    DISALLOW_COPY_AND_ASSIGN (PlatformRemoteiOS);
129
130};
131
132#endif  // liblldb_PlatformRemoteiOS_h_
133