SBPlatformΒΆ
- class lldb.SBPlatform(*args)ΒΆ
A class that represents a platform that can represent the current host or a remote host debug platform.
The SBPlatform class represents the current host, or a remote host. It can be connected to a remote platform in order to provide ways to remotely launch and attach to processes, upload/download files, create directories, run remote shell commands, find locally cached versions of files from the remote system, and much more.
SBPlatform objects can be created and then used to connect to a remote platform which allows the SBPlatform to be used to get a list of the current processes on the remote host, attach to one of those processes, install programs on the remote system, attach and launch processes, and much more.
Every
SBTarget
has a corresponding SBPlatform. The platform can be specified upon target creation, or the currently selected platform will attempt to be used when creating the target automatically as long as the currently selected platform matches the target architecture and executable type. If the architecture or executable type do not match, a suitable platform will be found automatically.Methods Summary
Attach
(SBPlatform self, ...)Clear
(SBPlatform self)ConnectRemote
(SBPlatform self, ...)DisconnectRemote
(SBPlatform self)Get
(SBPlatform self, SBFileSpec src, ...)GetAllProcesses
(SBPlatform self, SBError error)GetEnvironment
(SBPlatform self)GetFilePermissions
(SBPlatform self, ...)GetHostname
(SBPlatform self)GetName
(SBPlatform self)GetOSBuild
(SBPlatform self)GetOSDescription
(SBPlatform self)GetOSMajorVersion
(SBPlatform self)GetOSMinorVersion
(SBPlatform self)GetOSUpdateVersion
(SBPlatform self)GetTriple
(SBPlatform self)GetUnixSignals
(SBPlatform self)GetWorkingDirectory
(SBPlatform self)Install
(SBPlatform self, SBFileSpec src, ...)IsConnected
(SBPlatform self)IsValid
(SBPlatform self)Kill
(SBPlatform self, lldb)Launch
(SBPlatform self, SBLaunchInfo launch_info)MakeDirectory
(SBPlatform self, ...)Put
(SBPlatform self, SBFileSpec src, ...)Run
(SBPlatform self, ...)SetFilePermissions
(SBPlatform self, ...)SetLocateModuleCallback
(SBPlatform self, lldb)SetSDKRoot
(SBPlatform self, char const * sysroot)SetWorkingDirectory
(SBPlatform self, ...)Methods Documentation
- Attach(SBPlatform self, SBAttachInfo attach_info, SBDebugger debugger, SBTarget target, SBError error) SBProcess ΒΆ
- Clear(SBPlatform self)ΒΆ
- DisconnectRemote(SBPlatform self)ΒΆ
- GetAllProcesses(SBPlatform self, SBError error) SBProcessInfoList ΒΆ
- GetEnvironment(SBPlatform self) SBEnvironment ΒΆ
- GetFilePermissions(SBPlatform self, char const * path) uint32_t ΒΆ
- static GetHostPlatform() SBPlatform ΒΆ
- GetHostname(SBPlatform self) char const * ΒΆ
- GetName(SBPlatform self) char const * ΒΆ
- GetOSBuild(SBPlatform self) char const * ΒΆ
- GetOSDescription(SBPlatform self) char const * ΒΆ
- GetOSMajorVersion(SBPlatform self) uint32_t ΒΆ
- GetOSMinorVersion(SBPlatform self) uint32_t ΒΆ
- GetOSUpdateVersion(SBPlatform self) uint32_t ΒΆ
- GetTriple(SBPlatform self) char const * ΒΆ
- GetUnixSignals(SBPlatform self) SBUnixSignals ΒΆ
- GetWorkingDirectory(SBPlatform self) char const * ΒΆ
- IsConnected(SBPlatform self) bool ΒΆ
- IsValid(SBPlatform self) bool ΒΆ
- MakeDirectory(SBPlatform self, char const * path, uint32_t file_permissions=eFilePermissionsDirectoryDefault) SBError ΒΆ
- SetSDKRoot(SBPlatform self, char const * sysroot)ΒΆ
- SetWorkingDirectory(SBPlatform self, char const * path) bool ΒΆ