LLDB  mainline
PlatformAppleWatchSimulator.h
Go to the documentation of this file.
1 //===-- PlatformAppleWatchSimulator.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_PlatformAppleWatchSimulator_h_
10 #define liblldb_PlatformAppleWatchSimulator_h_
11 
12 #include "PlatformDarwin.h"
13 
15 public:
16  // Class Functions
17  static lldb::PlatformSP CreateInstance(bool force,
18  const lldb_private::ArchSpec *arch);
19 
20  static void Initialize();
21 
22  static void Terminate();
23 
25 
26  static const char *GetDescriptionStatic();
27 
28  // Class Methods
30 
32 
33  // lldb_private::PluginInterface functions
35  return GetPluginNameStatic();
36  }
37 
38  uint32_t GetPluginVersion() override { return 1; }
39 
40  // lldb_private::Platform functions
42  const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp,
43  const lldb_private::FileSpecList *module_search_paths_ptr) override;
44 
45  const char *GetDescription() override { return GetDescriptionStatic(); }
46 
47  void GetStatus(lldb_private::Stream &strm) override;
48 
49  virtual lldb_private::Status
50  GetSymbolFile(const lldb_private::FileSpec &platform_file,
51  const lldb_private::UUID *uuid_ptr,
52  lldb_private::FileSpec &local_file);
53 
55  GetSharedModule(const lldb_private::ModuleSpec &module_spec,
56  lldb_private::Process *process, lldb::ModuleSP &module_sp,
57  const lldb_private::FileSpecList *module_search_paths_ptr,
58  lldb::ModuleSP *old_module_sp_ptr,
59  bool *did_create_ptr) override;
60 
61  uint32_t
63  lldb_private::ProcessInstanceInfoList &process_infos) override;
64 
66  lldb_private::ArchSpec &arch) override;
67 
68  void
70  std::vector<std::string> &options) override {
72  target, options, PlatformDarwin::SDKType::iPhoneSimulator);
73  }
74 
75 protected:
76  std::mutex m_sdk_dir_mutex;
77  std::string m_sdk_directory;
78  std::string m_build_update;
79 
80  const char *GetSDKDirectoryAsCString();
81 
82 private:
83  DISALLOW_COPY_AND_ASSIGN(PlatformAppleWatchSimulator);
84 };
85 
86 #endif // liblldb_PlatformAppleWatchSimulator_h_
bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch) override
Get the platform&#39;s supported architectures in the order in which they should be searched.
lldb_private::ConstString GetPluginName() override
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
lldb_private::Status GetSharedModule(const lldb_private::ModuleSpec &module_spec, lldb_private::Process *process, lldb::ModuleSP &module_sp, const lldb_private::FileSpecList *module_search_paths_ptr, lldb::ModuleSP *old_module_sp_ptr, bool *did_create_ptr) override
void AddClangModuleCompilationOptions(lldb_private::Target *target, std::vector< std::string > &options) override
A file utility class.
Definition: FileSpec.h:55
An architecture specification class.
Definition: ArchSpec.h:32
uint32_t FindProcesses(const lldb_private::ProcessInstanceInfoMatch &match_info, lldb_private::ProcessInstanceInfoList &process_infos) override
Attach to an existing process by process name.
const char * GetDescription() override
virtual ~PlatformAppleWatchSimulator()
Destructor.
virtual lldb_private::Status GetSymbolFile(const lldb_private::FileSpec &platform_file, const lldb_private::UUID *uuid_ptr, lldb_private::FileSpec &local_file)
A plug-in interface definition class for debugging a process.
Definition: Process.h:353
void GetStatus(lldb_private::Stream &strm) override
Report the current status for this platform.
PlatformAppleWatchSimulator()
Default Constructor.
static lldb_private::ConstString GetPluginNameStatic()
A uniqued constant string class.
Definition: ConstString.h:38
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
lldb_private::Status ResolveExecutable(const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp, const lldb_private::FileSpecList *module_search_paths_ptr) override
void AddClangModuleCompilationOptionsForSDKType(lldb_private::Target *target, std::vector< std::string > &options, SDKType sdk_type)
An error handling class.
Definition: Status.h:44