1 //===-- PlatformAppleTVSimulator.h ------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_PlatformAppleTVSimulator_h_
11 #define liblldb_PlatformAppleTVSimulator_h_
15 // Other libraries and framework includes
17 #include "PlatformDarwin.h"
19 class PlatformAppleTVSimulator : public PlatformDarwin {
21 //------------------------------------------------------------
23 //------------------------------------------------------------
24 static lldb::PlatformSP CreateInstance(bool force,
25 const lldb_private::ArchSpec *arch);
27 static void Initialize();
29 static void Terminate();
31 static lldb_private::ConstString GetPluginNameStatic();
33 static const char *GetDescriptionStatic();
35 //------------------------------------------------------------
37 //------------------------------------------------------------
38 PlatformAppleTVSimulator();
40 virtual ~PlatformAppleTVSimulator();
42 //------------------------------------------------------------
43 // lldb_private::PluginInterface functions
44 //------------------------------------------------------------
45 lldb_private::ConstString GetPluginName() override {
46 return GetPluginNameStatic();
49 uint32_t GetPluginVersion() override { return 1; }
51 //------------------------------------------------------------
52 // lldb_private::Platform functions
53 //------------------------------------------------------------
54 lldb_private::Error ResolveExecutable(
55 const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp,
56 const lldb_private::FileSpecList *module_search_paths_ptr) override;
58 const char *GetDescription() override { return GetDescriptionStatic(); }
60 void GetStatus(lldb_private::Stream &strm) override;
62 virtual lldb_private::Error
63 GetSymbolFile(const lldb_private::FileSpec &platform_file,
64 const lldb_private::UUID *uuid_ptr,
65 lldb_private::FileSpec &local_file);
68 GetSharedModule(const lldb_private::ModuleSpec &module_spec,
69 lldb_private::Process *process, lldb::ModuleSP &module_sp,
70 const lldb_private::FileSpecList *module_search_paths_ptr,
71 lldb::ModuleSP *old_module_sp_ptr,
72 bool *did_create_ptr) override;
75 FindProcesses(const lldb_private::ProcessInstanceInfoMatch &match_info,
76 lldb_private::ProcessInstanceInfoList &process_infos) override;
78 bool GetSupportedArchitectureAtIndex(uint32_t idx,
79 lldb_private::ArchSpec &arch) override;
82 AddClangModuleCompilationOptions(lldb_private::Target *target,
83 std::vector<std::string> &options) override {
84 return PlatformDarwin::AddClangModuleCompilationOptionsForSDKType(
85 target, options, PlatformDarwin::SDKType::iPhoneSimulator);
89 std::mutex m_sdk_dir_mutex;
90 std::string m_sdk_directory;
91 std::string m_build_update;
93 const char *GetSDKDirectoryAsCString();
96 DISALLOW_COPY_AND_ASSIGN(PlatformAppleTVSimulator);
99 #endif // liblldb_PlatformAppleTVSimulator_h_