Package lldb :: Class SBPlatform |
[hide private]
[frames] | no frames]

# Class SBPlatform

source code

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.

Instance Methods | [hide private]
__setattr__(self, name, value) x.__setattr__('name', value) <==> x.name = value | source code
__getattr__(self, name) | source code
__repr__(self) repr(x) | source code
__init__(self, *args) __init__(lldb::SBPlatform self) -> SBPlatform __init__(lldb::SBPlatform self, str const * arg2) -> SBPlatform | source code
__swig_destroy__(...) delete_SBPlatform(SBPlatform self) |
__del__(self) | source code
__nonzero__(self) | source code
IsValid(self) IsValid(SBPlatform self) -> bool | source code
Clear(self) Clear(SBPlatform self) | source code
GetWorkingDirectory(self) GetWorkingDirectory(SBPlatform self) -> str const * | source code
SetWorkingDirectory(self, *args) SetWorkingDirectory(SBPlatform self, str const * arg2) -> bool | source code
GetName(self) GetName(SBPlatform self) -> str const * | source code
ConnectRemote(self, *args) ConnectRemote(SBPlatform self, SBPlatformConnectOptions connect_options) -> SBError | source code
DisconnectRemote(self) DisconnectRemote(SBPlatform self) | source code
IsConnected(self) IsConnected(SBPlatform self) -> bool | source code
GetTriple(self) GetTriple(SBPlatform self) -> str const * | source code
GetHostname(self) GetHostname(SBPlatform self) -> str const * | source code
GetOSBuild(self) GetOSBuild(SBPlatform self) -> str const * | source code
GetOSDescription(self) GetOSDescription(SBPlatform self) -> str const * | source code
GetOSMajorVersion(self) GetOSMajorVersion(SBPlatform self) -> uint32_t | source code
GetOSMinorVersion(self) GetOSMinorVersion(SBPlatform self) -> uint32_t | source code
GetOSUpdateVersion(self) GetOSUpdateVersion(SBPlatform self) -> uint32_t | source code
Get(self, *args) Get(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError | source code
Put(self, *args) Put(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError | source code
Install(self, *args) Install(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError | source code
Run(self, *args) Run(SBPlatform self, SBPlatformShellCommand shell_command) -> SBError | source code
Launch(self, *args) Launch(SBPlatform self, SBLaunchInfo launch_info) -> SBError | source code
Kill(self, *args) Kill(SBPlatform self, lldb::pid_t const pid) -> SBError | source code
MakeDirectory(self, *args) MakeDirectory(SBPlatform self, str const * path, uint32_t file_permissions=eFilePermissionsDirectoryDefault) -> SBError MakeDirectory(SBPlatform self, str const * path) -> SBError | source code
GetFilePermissions(self, *args) GetFilePermissions(SBPlatform self, str const * path) -> uint32_t | source code
SetFilePermissions(self, *args) SetFilePermissions(SBPlatform self, str const * path, uint32_t file_permissions) -> SBError | source code
GetUnixSignals(self) GetUnixSignals(SBPlatform self) -> SBUnixSignals | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __swig_setmethods__ = ``{``}``
| __swig_getmethods__ = ``{``}``

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __setattr__(self, name, value) | source code
x.__setattr__('name', value) <==> x.name = value Overrides: object.__setattr__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### __init__(self, *args) (Constructor) | source code
__init__(lldb::SBPlatform self) -> SBPlatform __init__(lldb::SBPlatform self, str const * arg2) -> SBPlatform Overrides: object.__init__