LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PlatformiOSSimulator Class Reference

#include <PlatformiOSSimulator.h>

Inheritance diagram for PlatformiOSSimulator:
Inheritance graph
[legend]
Collaboration diagram for PlatformiOSSimulator:
Collaboration graph
[legend]

Public Member Functions

 PlatformiOSSimulator ()
 Default Constructor. More...
 
 ~PlatformiOSSimulator () override
 Destructor. More...
 
lldb_private::ConstString GetPluginName () override
 
uint32_t GetPluginVersion () override
 
lldb_private::Status ResolveExecutable (const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp, const lldb_private::FileSpecList *module_search_paths_ptr) override
 
const char * GetDescription () override
 
void GetStatus (lldb_private::Stream &strm) override
 Report the current status for this platform. More...
 
virtual lldb_private::Status GetSymbolFile (const lldb_private::FileSpec &platform_file, const lldb_private::UUID *uuid_ptr, lldb_private::FileSpec &local_file)
 
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
 
uint32_t FindProcesses (const lldb_private::ProcessInstanceInfoMatch &match_info, lldb_private::ProcessInstanceInfoList &process_infos) override
 Attach to an existing process by process name. More...
 
bool GetSupportedArchitectureAtIndex (uint32_t idx, lldb_private::ArchSpec &arch) override
 Get the platform's supported architectures in the order in which they should be searched. More...
 
void AddClangModuleCompilationOptions (lldb_private::Target *target, std::vector< std::string > &options) override
 
- Public Member Functions inherited from PlatformAppleSimulator
 PlatformAppleSimulator ()
 Default Constructor. More...
 
virtual ~PlatformAppleSimulator ()
 Destructor. More...
 
lldb_private::Status LaunchProcess (lldb_private::ProcessLaunchInfo &launch_info) override
 Launch a new process on a platform, not necessarily for debugging, it could be just for running the process. More...
 
lldb_private::Status ConnectRemote (lldb_private::Args &args) override
 
lldb_private::Status DisconnectRemote () override
 
lldb::ProcessSP DebugProcess (lldb_private::ProcessLaunchInfo &launch_info, lldb_private::Debugger &debugger, lldb_private::Target *target, lldb_private::Status &error) override
 Subclasses do not need to implement this function as it uses the Platform::LaunchProcess() followed by Platform::Attach (). More...
 
- Public Member Functions inherited from PlatformDarwin
 PlatformDarwin (bool is_host)
 Default Constructor. More...
 
 ~PlatformDarwin () override
 Destructor. More...
 
lldb_private::Status ResolveSymbolFile (lldb_private::Target &target, const lldb_private::ModuleSpec &sym_spec, lldb_private::FileSpec &sym_file) override
 Find a symbol file given a symbol file module specification. More...
 
lldb_private::FileSpecList LocateExecutableScriptingResources (lldb_private::Target *target, lldb_private::Module &module, lldb_private::Stream *feedback_stream) override
 
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
 
size_t GetSoftwareBreakpointTrapOpcode (lldb_private::Target &target, lldb_private::BreakpointSite *bp_site) override
 
lldb::BreakpointSP SetThreadCreationBreakpoint (lldb_private::Target &target) override
 
bool ModuleIsExcludedForUnconstrainedSearches (lldb_private::Target &target, const lldb::ModuleSP &module_sp) override
 
bool ARMGetSupportedArchitectureAtIndex (uint32_t idx, lldb_private::ArchSpec &arch)
 
bool x86GetSupportedArchitectureAtIndex (uint32_t idx, lldb_private::ArchSpec &arch)
 
int32_t GetResumeCountForLaunchInfo (lldb_private::ProcessLaunchInfo &launch_info) override
 
void CalculateTrapHandlerSymbolNames () override
 Ask the Platform subclass to fill in the list of trap handler names. More...
 
llvm::VersionTuple GetOSVersion (lldb_private::Process *process=nullptr) override
 Get the OS version from a connected platform. More...
 
bool SupportsModules () override
 
lldb_private::ConstString GetFullNameForDylib (lldb_private::ConstString basename) override
 
lldb_private::FileSpec LocateExecutable (const char *basename) override
 Find a support executable that may not live within in the standard locations related to LLDB. More...
 
lldb_private::Status LaunchProcess (lldb_private::ProcessLaunchInfo &launch_info) override
 Launch a new process on a platform, not necessarily for debugging, it could be just for running the process. More...
 
- Public Member Functions inherited from PlatformPOSIX
 PlatformPOSIX (bool is_host)
 Default Constructor. More...
 
 ~PlatformPOSIX () override
 Destructor. More...
 
lldb_private::OptionGroupOptionsGetConnectionOptions (lldb_private::CommandInterpreter &interpreter) override
 
lldb_private::Status PutFile (const lldb_private::FileSpec &source, const lldb_private::FileSpec &destination, uint32_t uid=UINT32_MAX, uint32_t gid=UINT32_MAX) override
 
lldb_private::Status GetFile (const lldb_private::FileSpec &source, const lldb_private::FileSpec &destination) override
 
const lldb::UnixSignalsSP & GetRemoteUnixSignals () override
 
lldb_private::Status ResolveExecutable (const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp, const lldb_private::FileSpecList *module_search_paths_ptr) override
 
lldb::ProcessSP Attach (lldb_private::ProcessAttachInfo &attach_info, lldb_private::Debugger &debugger, lldb_private::Target *target, lldb_private::Status &error) override
 Attach to an existing process using a process ID. More...
 
lldb::ProcessSP DebugProcess (lldb_private::ProcessLaunchInfo &launch_info, lldb_private::Debugger &debugger, lldb_private::Target *target, lldb_private::Status &error) override
 Subclasses do not need to implement this function as it uses the Platform::LaunchProcess() followed by Platform::Attach (). More...
 
std::string GetPlatformSpecificConnectionInformation () override
 
void CalculateTrapHandlerSymbolNames () override
 Ask the Platform subclass to fill in the list of trap handler names. More...
 
lldb_private::Status ConnectRemote (lldb_private::Args &args) override
 
lldb_private::Status DisconnectRemote () override
 
uint32_t DoLoadImage (lldb_private::Process *process, const lldb_private::FileSpec &remote_file, const std::vector< std::string > *paths, lldb_private::Status &error, lldb_private::FileSpec *loaded_image) override
 
lldb_private::Status UnloadImage (lldb_private::Process *process, uint32_t image_token) override
 
size_t ConnectToWaitingProcesses (lldb_private::Debugger &debugger, lldb_private::Status &error) override
 Connect to all processes waiting for a debugger to attach. More...
 
lldb_private::ConstString GetFullNameForDylib (lldb_private::ConstString basename) override
 
- Public Member Functions inherited from lldb_private::RemoteAwarePlatform
bool GetModuleSpec (const FileSpec &module_file_spec, const ArchSpec &arch, ModuleSpec &module_spec) override
 
lldb::user_id_t OpenFile (const FileSpec &file_spec, uint32_t flags, uint32_t mode, Status &error) override
 
bool CloseFile (lldb::user_id_t fd, Status &error) override
 
uint64_t ReadFile (lldb::user_id_t fd, uint64_t offset, void *dst, uint64_t dst_len, Status &error) override
 
uint64_t WriteFile (lldb::user_id_t fd, uint64_t offset, const void *src, uint64_t src_len, Status &error) override
 
lldb::user_id_t GetFileSize (const FileSpec &file_spec) override
 
Status CreateSymlink (const FileSpec &src, const FileSpec &dst) override
 
bool GetFileExists (const FileSpec &file_spec) override
 
Status Unlink (const FileSpec &file_spec) override
 
FileSpec GetRemoteWorkingDirectory () override
 
bool SetRemoteWorkingDirectory (const FileSpec &working_dir) override
 
Status MakeDirectory (const FileSpec &file_spec, uint32_t mode) override
 
Status GetFilePermissions (const FileSpec &file_spec, uint32_t &file_permissions) override
 
Status SetFilePermissions (const FileSpec &file_spec, uint32_t file_permissions) override
 
bool CalculateMD5 (const FileSpec &file_spec, uint64_t &low, uint64_t &high) override
 
Status GetFileWithUUID (const FileSpec &platform_file, const UUID *uuid, FileSpec &local_file) override
 Locate a file for a platform. More...
 
bool GetRemoteOSVersion () override
 
bool GetRemoteOSBuildString (std::string &s) override
 
bool GetRemoteOSKernelDescription (std::string &s) override
 
ArchSpec GetRemoteSystemArchitecture () override
 
Status RunShellCommand (const char *command, const FileSpec &working_dir, int *status_ptr, int *signo_ptr, std::string *command_output, const Timeout< std::micro > &timeout) override
 
const char * GetHostname () override
 
UserIDResolverGetUserIDResolver () override
 
lldb_private::Environment GetEnvironment () override
 
bool IsConnected () const override
 
bool GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info) override
 
lldb::ProcessSP ConnectProcess (llvm::StringRef connect_url, llvm::StringRef plugin_name, Debugger &debugger, Target *target, Status &error) override
 
Status KillProcess (const lldb::pid_t pid) override
 Kill process on a platform. More...
 
- Public Member Functions inherited from lldb_private::Platform
 Platform (bool is_host_platform)
 Default Constructor. More...
 
 ~Platform () override
 Destructor. More...
 
virtual Status ResolveExecutable (const ModuleSpec &module_spec, lldb::ModuleSP &module_sp, const FileSpecList *module_search_paths_ptr)
 Find a platform plugin for a given process. More...
 
virtual bool ResolveRemotePath (const FileSpec &platform_path, FileSpec &resolved_platform_path)
 Resolves the FileSpec to a (possibly) remote path. More...
 
bool SetOSVersion (llvm::VersionTuple os_version)
 
bool GetOSBuildString (std::string &s)
 
bool GetOSKernelDescription (std::string &s)
 
ConstString GetName ()
 
virtual std::vector< std::string > GetSystemIncludeDirectories (lldb::LanguageType lang)
 Retrieve the system include directories on this platform for the given language. More...
 
virtual Status GetSharedModule (const ModuleSpec &module_spec, Process *process, lldb::ModuleSP &module_sp, const FileSpecList *module_search_paths_ptr, lldb::ModuleSP *old_module_sp_ptr, bool *did_create_ptr)
 
virtual Status ShellExpandArguments (ProcessLaunchInfo &launch_info)
 Perform expansion of the command-line for this launch info This can potentially involve wildcard expansion environment variable replacement, and whatever other argument magic the platform defines as part of its typical user experience. More...
 
virtual bool IsCompatibleArchitecture (const ArchSpec &arch, bool exact_arch_match, ArchSpec *compatible_arch_ptr)
 Lets a platform answer if it is compatible with a given architecture and the target triple contained within. More...
 
virtual bool CanDebugProcess ()
 Not all platforms will support debugging a process by spawning somehow halted for a debugger (specified using the "eLaunchFlagDebug" launch flag) and then attaching. More...
 
virtual lldb_private::ConstString GetSDKDirectory (lldb_private::Target &target)
 
const std::string & GetRemoteURL () const
 
bool IsHost () const
 
bool IsRemote () const
 
const ArchSpecGetSystemArchitecture ()
 
void SetSystemArchitecture (const ArchSpec &arch)
 
ArchSpec GetAugmentedArchSpec (llvm::StringRef triple)
 If the triple contains not specify the vendor, os, and environment parts, we "augment" these using information from the platform and return the resulting ArchSpec object. More...
 
size_t GetMaxUserIDNameLength () const
 
size_t GetMaxGroupIDNameLength () const
 
ConstString GetSDKRootDirectory () const
 
void SetSDKRootDirectory (ConstString dir)
 
ConstString GetSDKBuild () const
 
void SetSDKBuild (ConstString sdk_build)
 
FileSpec GetWorkingDirectory ()
 
bool SetWorkingDirectory (const FileSpec &working_dir)
 
virtual Status Install (const FileSpec &src, const FileSpec &dst)
 Install a file or directory to the remote system. More...
 
virtual MmapArgList GetMmapArgumentList (const ArchSpec &arch, lldb::addr_t addr, lldb::addr_t length, unsigned prot, unsigned flags, lldb::addr_t fd, lldb::addr_t offset)
 
virtual bool GetSupportsRSync ()
 
virtual void SetSupportsRSync (bool flag)
 
virtual const char * GetRSyncOpts ()
 
virtual void SetRSyncOpts (const char *opts)
 
virtual const char * GetRSyncPrefix ()
 
virtual void SetRSyncPrefix (const char *prefix)
 
virtual bool GetSupportsSSH ()
 
virtual void SetSupportsSSH (bool flag)
 
virtual const char * GetSSHOpts ()
 
virtual void SetSSHOpts (const char *opts)
 
virtual bool GetIgnoresRemoteHostname ()
 
virtual void SetIgnoresRemoteHostname (bool flag)
 
virtual void SetLocalCacheDirectory (const char *local)
 
virtual const char * GetLocalCacheDirectory ()
 
lldb::UnixSignalsSP GetUnixSignals ()
 
virtual std::string GetQueueNameForThreadQAddress (Process *process, lldb::addr_t dispatch_qaddr)
 Locate a queue name given a thread's qaddr. More...
 
virtual lldb::queue_id_t GetQueueIDForThreadQAddress (Process *process, lldb::addr_t dispatch_qaddr)
 Locate a queue ID given a thread's qaddr. More...
 
virtual const std::vector< ConstString > & GetTrapHandlerSymbolNames ()
 Provide a list of trap handler function names for this platform. More...
 
virtual uint32_t GetDefaultMemoryCacheLineSize ()
 Allow the platform to set preferred memory cache line size. More...
 
uint32_t LoadImage (lldb_private::Process *process, const lldb_private::FileSpec &local_file, const lldb_private::FileSpec &remote_file, lldb_private::Status &error)
 Load a shared library into this process. More...
 
uint32_t LoadImageUsingPaths (lldb_private::Process *process, const lldb_private::FileSpec &library_name, const std::vector< std::string > &paths, lldb_private::Status &error, lldb_private::FileSpec *loaded_path)
 Load a shared library specified by base name into this process, looking by hand along a set of paths. More...
 
- Public Member Functions inherited from lldb_private::PluginInterface
virtual ~PluginInterface ()
 

Static Public Member Functions

static lldb::PlatformSP CreateInstance (bool force, const lldb_private::ArchSpec *arch)
 
static void Initialize ()
 
static void Terminate ()
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static const char * GetDescriptionStatic ()
 
- Static Public Member Functions inherited from PlatformAppleSimulator
static void Initialize ()
 
static void Terminate ()
 
- Static Public Member Functions inherited from PlatformDarwin
static std::tuple< llvm::VersionTuple, llvm::StringRef > ParseVersionBuildDir (llvm::StringRef str)
 
- Static Public Member Functions inherited from lldb_private::Platform
static void Initialize ()
 
static void Terminate ()
 
static const PlatformPropertiesSPGetGlobalPlatformProperties ()
 
static lldb::PlatformSP GetHostPlatform ()
 Get the native host platform plug-in. More...
 
static lldb::PlatformSP GetPlatformForArchitecture (const ArchSpec &arch, ArchSpec *platform_arch_ptr)
 
static const char * GetHostPlatformName ()
 
static void SetHostPlatform (const lldb::PlatformSP &platform_sp)
 
static lldb::PlatformSP Find (ConstString name)
 
static lldb::PlatformSP Create (ConstString name, Status &error)
 
static lldb::PlatformSP Create (const ArchSpec &arch, ArchSpec *platform_arch_ptr, Status &error)
 
static ArchSpec GetAugmentedArchSpec (Platform *platform, llvm::StringRef triple)
 Augments the triple either with information from platform or the host system (if platform is null). More...
 

Protected Member Functions

const char * GetSDKDirectoryAsCString ()
 
- Protected Member Functions inherited from PlatformAppleSimulator
lldb_private::FileSpec GetCoreSimulatorPath ()
 
void LoadCoreSimulator ()
 
- Protected Member Functions inherited from PlatformDarwin
void ReadLibdispatchOffsetsAddress (lldb_private::Process *process)
 
void ReadLibdispatchOffsets (lldb_private::Process *process)
 
virtual lldb_private::Status GetSharedModuleWithLocalCache (const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp, const lldb_private::FileSpecList *module_search_paths_ptr, lldb::ModuleSP *old_module_sp_ptr, bool *did_create_ptr)
 
void AddClangModuleCompilationOptionsForSDKType (lldb_private::Target *target, std::vector< std::string > &options, SDKType sdk_type)
 
const char * GetDeveloperDirectory ()
 
lldb_private::Status FindBundleBinaryInExecSearchPaths (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)
 
- Protected Member Functions inherited from PlatformPOSIX
lldb_private::Status EvaluateLibdlExpression (lldb_private::Process *process, const char *expr_cstr, llvm::StringRef expr_prefix, lldb::ValueObjectSP &result_valobj_sp)
 
std::unique_ptr< lldb_private::UtilityFunctionMakeLoadImageUtilityFunction (lldb_private::ExecutionContext &exe_ctx, lldb_private::Status &error)
 
virtual llvm::StringRef GetLibdlFunctionDeclarations (lldb_private::Process *process)
 
- Protected Member Functions inherited from lldb_private::Platform
Status GetCachedExecutable (ModuleSpec &module_spec, lldb::ModuleSP &module_sp, const FileSpecList *module_search_paths_ptr, Platform &remote_platform)
 
virtual Status DownloadModuleSlice (const FileSpec &src_file_spec, const uint64_t src_offset, const uint64_t src_size, const FileSpec &dst_file_spec)
 
virtual Status DownloadSymbolFile (const lldb::ModuleSP &module_sp, const FileSpec &dst_file_spec)
 
virtual const char * GetCacheHostname ()
 

Protected Attributes

std::mutex m_sdk_dir_mutex
 
std::string m_sdk_directory
 
std::string m_build_update
 
- Protected Attributes inherited from PlatformAppleSimulator
std::mutex m_core_sim_path_mutex
 
llvm::Optional< lldb_private::FileSpecm_core_simulator_framework_path
 
llvm::Optional< CoreSimulatorSupport::Devicem_device
 
- Protected Attributes inherited from PlatformDarwin
std::string m_developer_directory
 
- Protected Attributes inherited from PlatformPOSIX
std::unique_ptr< lldb_private::OptionGroupPlatformRSyncm_option_group_platform_rsync
 
std::unique_ptr< lldb_private::OptionGroupPlatformSSHm_option_group_platform_ssh
 
std::unique_ptr< lldb_private::OptionGroupPlatformCachingm_option_group_platform_caching
 
std::map< lldb_private::CommandInterpreter *, std::unique_ptr< lldb_private::OptionGroupOptions > > m_options
 
- Protected Attributes inherited from lldb_private::RemoteAwarePlatform
lldb::PlatformSP m_remote_platform_sp
 
- Protected Attributes inherited from lldb_private::Platform
bool m_is_host
 
bool m_os_version_set_while_connected
 
bool m_system_arch_set_while_connected
 
ConstString m_sdk_sysroot
 
ConstString m_sdk_build
 
FileSpec m_working_dir
 
std::string m_remote_url
 
std::string m_name
 
llvm::VersionTuple m_os_version
 
ArchSpec m_system_arch
 
std::mutex m_mutex
 
size_t m_max_uid_name_len
 
size_t m_max_gid_name_len
 
bool m_supports_rsync
 
std::string m_rsync_opts
 
std::string m_rsync_prefix
 
bool m_supports_ssh
 
std::string m_ssh_opts
 
bool m_ignores_remote_hostname
 
std::string m_local_cache_directory
 
std::vector< ConstStringm_trap_handlers
 
bool m_calculated_trap_handlers
 
const std::unique_ptr< ModuleCachem_module_cache
 

Additional Inherited Members

- Public Types inherited from PlatformDarwin
enum  SDKType : unsigned { MacOSX = 0, iPhoneSimulator, iPhoneOS }
 
- Protected Types inherited from lldb_private::Platform
typedef std::map< uint32_t, ConstStringIDToNameMap
 
- Static Protected Member Functions inherited from PlatformDarwin
static bool SDKSupportsModules (SDKType sdk_type, llvm::VersionTuple version)
 
static bool SDKSupportsModules (SDKType desired_type, const lldb_private::FileSpec &sdk_path)
 
static lldb_private::FileSystem::EnumerateDirectoryResult DirectoryEnumerator (void *baton, llvm::sys::fs::file_type file_type, llvm::StringRef path)
 
static lldb_private::FileSpec FindSDKInXcodeForModules (SDKType sdk_type, const lldb_private::FileSpec &sdks_spec)
 
static lldb_private::FileSpec GetSDKDirectoryForModules (PlatformDarwin::SDKType sdk_type)
 

Detailed Description

Definition at line 17 of file PlatformiOSSimulator.h.

Constructor & Destructor Documentation

◆ PlatformiOSSimulator()

PlatformiOSSimulator::PlatformiOSSimulator ( )

Default Constructor.

Definition at line 151 of file PlatformiOSSimulator.cpp.

◆ ~PlatformiOSSimulator()

PlatformiOSSimulator::~PlatformiOSSimulator ( )
override

Destructor.

The destructor is virtual since this class is designed to be inherited from by the plug-in instance.

Definition at line 159 of file PlatformiOSSimulator.cpp.

Member Function Documentation

◆ AddClangModuleCompilationOptions()

void PlatformiOSSimulator::AddClangModuleCompilationOptions ( lldb_private::Target target,
std::vector< std::string > &  options 
)
inlineoverridevirtual

◆ CreateInstance()

PlatformSP PlatformiOSSimulator::CreateInstance ( bool  force,
const lldb_private::ArchSpec arch 
)
static

◆ FindProcesses()

uint32_t PlatformiOSSimulator::FindProcesses ( const lldb_private::ProcessInstanceInfoMatch match_info,
lldb_private::ProcessInstanceInfoList proc_infos 
)
overridevirtual

Attach to an existing process by process name.

This function is not meant to be overridden by Process subclasses. It will first call Process::WillAttach (const char *) and if that returns true, Process::DoAttach (const char *) will be called to actually do the attach. If DoAttach returns true, then Process::DidAttach() will be called.

Parameters
[in]process_nameA process name to match against the current process list.
Returns
Returns pid if attaching was successful, or LLDB_INVALID_PROCESS_ID if attaching fails.

Reimplemented from lldb_private::RemoteAwarePlatform.

Definition at line 363 of file PlatformiOSSimulator.cpp.

References lldb_private::ProcessInstanceInfoList::Append(), lldb_private::ProcessInfo::GetArchitecture(), lldb_private::ProcessInstanceInfoList::GetProcessInfoAtIndex(), lldb_private::ProcessInstanceInfoList::GetSize(), and lldb_private::ArchSpec::GetTriple().

Referenced by GetDescription().

◆ GetDescription()

const char* PlatformiOSSimulator::GetDescription ( )
inlineoverridevirtual

◆ GetDescriptionStatic()

const char * PlatformiOSSimulator::GetDescriptionStatic ( )
static

Definition at line 146 of file PlatformiOSSimulator.cpp.

Referenced by GetDescription(), and Initialize().

◆ GetPluginName()

lldb_private::ConstString PlatformiOSSimulator::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 36 of file PlatformiOSSimulator.h.

References GetPluginNameStatic().

Referenced by GetSymbolFile(), and ResolveExecutable().

◆ GetPluginNameStatic()

lldb_private::ConstString PlatformiOSSimulator::GetPluginNameStatic ( )
static

Definition at line 141 of file PlatformiOSSimulator.cpp.

Referenced by GetPluginName(), and Initialize().

◆ GetPluginVersion()

uint32_t PlatformiOSSimulator::GetPluginVersion ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 40 of file PlatformiOSSimulator.h.

References ResolveExecutable().

◆ GetSDKDirectoryAsCString()

const char * PlatformiOSSimulator::GetSDKDirectoryAsCString ( )
protected

◆ GetSharedModule()

Status PlatformiOSSimulator::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

◆ GetStatus()

void PlatformiOSSimulator::GetStatus ( lldb_private::Stream strm)
overridevirtual

Report the current status for this platform.

The returned string usually involves returning the OS version (if available), and any SDK directory that might be being used for local file caching, and if connected a quick blurb about what this platform is connected to.

Reimplemented from PlatformAppleSimulator.

Definition at line 161 of file PlatformiOSSimulator.cpp.

References GetSDKDirectoryAsCString(), PlatformAppleSimulator::GetStatus(), lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().

Referenced by GetDescription().

◆ GetSupportedArchitectureAtIndex()

bool PlatformiOSSimulator::GetSupportedArchitectureAtIndex ( uint32_t  idx,
lldb_private::ArchSpec arch 
)
overridevirtual

Get the platform's supported architectures in the order in which they should be searched.

Parameters
[in]idxA zero based architecture index
[out]archA copy of the architecture at index if the return value is true.
Returns
true if arch was filled in and is valid, false otherwise.

Implements lldb_private::Platform.

Definition at line 380 of file PlatformiOSSimulator.cpp.

References lldb_private::ArchSpec::GetTriple(), lldb_private::ArchSpec::IsExactMatch(), and lldb_private::ArchSpec::IsValid().

Referenced by GetDescription(), and ResolveExecutable().

◆ GetSymbolFile()

Status PlatformiOSSimulator::GetSymbolFile ( const lldb_private::FileSpec platform_file,
const lldb_private::UUID uuid_ptr,
lldb_private::FileSpec local_file 
)
virtual

◆ Initialize()

void PlatformiOSSimulator::Initialize ( )
static

◆ ResolveExecutable()

Status PlatformiOSSimulator::ResolveExecutable ( const lldb_private::ModuleSpec module_spec,
lldb::ModuleSP &  module_sp,
const lldb_private::FileSpecList *  module_search_paths_ptr 
)
override

◆ Terminate()

void PlatformiOSSimulator::Terminate ( )
static

Member Data Documentation

◆ m_build_update

std::string PlatformiOSSimulator::m_build_update
protected

Definition at line 80 of file PlatformiOSSimulator.h.

◆ m_sdk_dir_mutex

std::mutex PlatformiOSSimulator::m_sdk_dir_mutex
protected

Definition at line 78 of file PlatformiOSSimulator.h.

Referenced by GetSDKDirectoryAsCString().

◆ m_sdk_directory

std::string PlatformiOSSimulator::m_sdk_directory
protected

Definition at line 79 of file PlatformiOSSimulator.h.

Referenced by GetSDKDirectoryAsCString().


The documentation for this class was generated from the following files: