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, ...)

GetHostPlatform()

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)ΒΆ
ConnectRemote(SBPlatform self, SBPlatformConnectOptions connect_options) SBErrorΒΆ
DisconnectRemote(SBPlatform self)ΒΆ
Get(SBPlatform self, SBFileSpec src, SBFileSpec dst) SBErrorΒΆ
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 *ΒΆ
Install(SBPlatform self, SBFileSpec src, SBFileSpec dst) SBErrorΒΆ
IsConnected(SBPlatform self) boolΒΆ
IsValid(SBPlatform self) boolΒΆ
Kill(SBPlatform self, lldb::pid_t const pid) SBErrorΒΆ
Launch(SBPlatform self, SBLaunchInfo launch_info) SBErrorΒΆ
MakeDirectory(SBPlatform self, char const * path, uint32_t file_permissions=eFilePermissionsDirectoryDefault) SBErrorΒΆ
Put(SBPlatform self, SBFileSpec src, SBFileSpec dst) SBErrorΒΆ
Run(SBPlatform self, SBPlatformShellCommand shell_command) SBErrorΒΆ
SetFilePermissions(SBPlatform self, char const * path, uint32_t file_permissions) SBErrorΒΆ
SetLocateModuleCallback(SBPlatform self, lldb::SBPlatformLocateModuleCallback callback) SBErrorΒΆ
SetSDKRoot(SBPlatform self, char const * sysroot)ΒΆ
SetWorkingDirectory(SBPlatform self, char const * path) boolΒΆ