Struct lldb::SBPlatform
source · [−]pub struct SBPlatform {
pub raw: SBPlatformRef,
}
Expand description
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
raw: SBPlatformRef
The underlying raw SBPlatformRef
.
Implementations
sourceimpl SBPlatform
impl SBPlatform
pub fn get_host_platform() -> SBPlatform
sourcepub fn working_directory(&self) -> &str
pub fn working_directory(&self) -> &str
The working directory for this platform.
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the platform.
When debugging on the host platform, this would be "host"
.
sourcepub fn triple(&self) -> &str
pub fn triple(&self) -> &str
The triple used to describe this platform.
An example value might be "x86_64-apple-macosx"
.
sourcepub fn os_description(&self) -> &str
pub fn os_description(&self) -> &str
The long form description of the platform’s OS version.
On macOS, this might look like "Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64"
.
sourcepub fn os_major_version(&self) -> u32
pub fn os_major_version(&self) -> u32
The major component of the platform’s OS version.
On macOS 10.15.4, this would have the value 10
.
sourcepub fn os_minor_version(&self) -> u32
pub fn os_minor_version(&self) -> u32
The minor component of the platform’s OS version.
On macOS 10.15.4, this would have the value 15
.
sourcepub fn os_update_version(&self) -> u32
pub fn os_update_version(&self) -> u32
The patch or update component of the platform’s OS version.
On macOS 10.15.4, this would have the value 4
.
Trait Implementations
sourceimpl Clone for SBPlatform
impl Clone for SBPlatform
sourcefn clone(&self) -> SBPlatform
fn clone(&self) -> SBPlatform
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more