Struct lldb::SBPlatform [] [src]

pub struct SBPlatform {
    pub raw: SBPlatformRef,
}

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.

Fields

The underlying raw SBPlatformRef.

Methods

impl SBPlatform
[src]

[src]

Construct a new SBPlatform.

[src]

Construct a new Some(SBPlatform) or None.

[src]

Check whether or not this is a valid SBPlatform value.

[src]

The working directory for this platform.

[src]

The name of the platform.

When debugging on the host platform, this would be "host".

[src]

The triple used to describe this platform.

An example value might be "x86_64-apple-macosx".

[src]

The hostname for this platform.

[src]

The build ID for the platforms' OS version.

[src]

The long form description of the platform's OS version.

On Mac OS X, this might look like "Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64".

[src]

The major component of the platform's OS version.

On Mac OS X 10.11.4, this would have the value 10.

[src]

The minor component of the platform's OS version.

On Mac OS X 10.11.4, this would have the value 11.

[src]

The patch or update component of the platform's OS version.

On Mac OS X 10.11.4, this would have the value 4.

[src]

Launch a process. This is not for debugging that process.

[src]

Kill a process.

Trait Implementations

impl Debug for SBPlatform
[src]

[src]

Formats the value using the given formatter.

impl Drop for SBPlatform
[src]

[src]

Executes the destructor for this type. Read more