LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
lldb::SBPlatform Class Reference

#include <SBPlatform.h>

Collaboration diagram for lldb::SBPlatform:
Collaboration graph
[legend]

Public Member Functions

 SBPlatform ()
 
 SBPlatform (const char *platform_name)
 
 SBPlatform (const SBPlatform &rhs)
 
SBPlatformoperator= (const SBPlatform &rhs)
 
 ~SBPlatform ()
 
 operator bool () const
 
bool IsValid () const
 
void Clear ()
 
const char * GetWorkingDirectory ()
 
bool SetWorkingDirectory (const char *path)
 
const char * GetName ()
 
SBError ConnectRemote (SBPlatformConnectOptions &connect_options)
 
void DisconnectRemote ()
 
bool IsConnected ()
 
const char * GetTriple ()
 
const char * GetHostname ()
 
const char * GetOSBuild ()
 
const char * GetOSDescription ()
 
uint32_t GetOSMajorVersion ()
 
uint32_t GetOSMinorVersion ()
 
uint32_t GetOSUpdateVersion ()
 
void SetSDKRoot (const char *sysroot)
 
SBError Put (SBFileSpec &src, SBFileSpec &dst)
 
SBError Get (SBFileSpec &src, SBFileSpec &dst)
 
SBError Install (SBFileSpec &src, SBFileSpec &dst)
 
SBError Run (SBPlatformShellCommand &shell_command)
 
SBError Launch (SBLaunchInfo &launch_info)
 
SBError Kill (const lldb::pid_t pid)
 
SBError MakeDirectory (const char *path, uint32_t file_permissions=eFilePermissionsDirectoryDefault)
 
uint32_t GetFilePermissions (const char *path)
 
SBError SetFilePermissions (const char *path, uint32_t file_permissions)
 
SBUnixSignals GetUnixSignals () const
 
SBEnvironment GetEnvironment ()
 Return the environment variables of the remote platform connection process. More...
 

Static Public Member Functions

static SBPlatform GetHostPlatform ()
 

Protected Member Functions

lldb::PlatformSP GetSP () const
 
void SetSP (const lldb::PlatformSP &platform_sp)
 
SBError ExecuteConnected (const std::function< lldb_private::Status(const lldb::PlatformSP &)> &func)
 

Protected Attributes

lldb::PlatformSP m_opaque_sp
 

Friends

class SBDebugger
 
class SBTarget
 

Detailed Description

Definition at line 93 of file SBPlatform.h.

Constructor & Destructor Documentation

◆ SBPlatform() [1/3]

SBPlatform::SBPlatform ( )

Definition at line 290 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBPlatform() [2/3]

SBPlatform::SBPlatform ( const char *  platform_name)

Definition at line 292 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ SBPlatform() [3/3]

SBPlatform::SBPlatform ( const SBPlatform rhs)

Definition at line 298 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ ~SBPlatform()

SBPlatform::~SBPlatform ( )
default

Member Function Documentation

◆ Clear()

void SBPlatform::Clear ( )

Definition at line 331 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ ConnectRemote()

SBError SBPlatform::ConnectRemote ( SBPlatformConnectOptions connect_options)

◆ DisconnectRemote()

void SBPlatform::DisconnectRemote ( )

Definition at line 390 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ ExecuteConnected()

SBError SBPlatform::ExecuteConnected ( const std::function< lldb_private::Status(const lldb::PlatformSP &)> &  func)
protected

Definition at line 582 of file SBPlatform.cpp.

References GetSP(), lldb::SBError::ref(), and lldb::SBError::SetErrorString().

Referenced by Install(), Kill(), Launch(), Put(), and Run().

◆ Get()

SBError SBPlatform::Get ( SBFileSpec src,
SBFileSpec dst 
)

◆ GetEnvironment()

SBEnvironment SBPlatform::GetEnvironment ( )

Return the environment variables of the remote platform connection process.

Returns
An lldb::SBEnvironment object which is a copy of the platform's environment.

Definition at line 647 of file SBPlatform.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBEnvironment.

◆ GetFilePermissions()

uint32_t SBPlatform::GetFilePermissions ( const char *  path)

Definition at line 611 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetHostname()

const char * SBPlatform::GetHostname ( )

Definition at line 452 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetHostPlatform()

SBPlatform SBPlatform::GetHostPlatform ( )
static

Definition at line 313 of file SBPlatform.cpp.

References LLDB_INSTRUMENT, and m_opaque_sp.

◆ GetName()

const char * SBPlatform::GetName ( )

◆ GetOSBuild()

const char * SBPlatform::GetOSBuild ( )

◆ GetOSDescription()

const char * SBPlatform::GetOSDescription ( )

◆ GetOSMajorVersion()

uint32_t SBPlatform::GetOSMajorVersion ( )

Definition at line 461 of file SBPlatform.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and UINT32_MAX.

◆ GetOSMinorVersion()

uint32_t SBPlatform::GetOSMinorVersion ( )

Definition at line 470 of file SBPlatform.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and UINT32_MAX.

◆ GetOSUpdateVersion()

uint32_t SBPlatform::GetOSUpdateVersion ( )

Definition at line 479 of file SBPlatform.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and UINT32_MAX.

◆ GetSP()

lldb::PlatformSP SBPlatform::GetSP ( ) const
protected

◆ GetTriple()

const char * SBPlatform::GetTriple ( )

◆ GetUnixSignals()

SBUnixSignals SBPlatform::GetUnixSignals ( ) const

Definition at line 638 of file SBPlatform.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBUnixSignals.

◆ GetWorkingDirectory()

const char * SBPlatform::GetWorkingDirectory ( )

Definition at line 352 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ Install()

SBError SBPlatform::Install ( SBFileSpec src,
SBFileSpec dst 
)

◆ IsConnected()

bool SBPlatform::IsConnected ( )

Definition at line 398 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsValid()

bool SBPlatform::IsValid ( ) const

Definition at line 321 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA.

◆ Kill()

SBError SBPlatform::Kill ( const lldb::pid_t  pid)

Definition at line 575 of file SBPlatform.cpp.

References ExecuteConnected(), and LLDB_INSTRUMENT_VA.

◆ Launch()

SBError SBPlatform::Launch ( SBLaunchInfo launch_info)

◆ MakeDirectory()

SBError SBPlatform::MakeDirectory ( const char *  path,
uint32_t  file_permissions = eFilePermissionsDirectoryDefault 
)

◆ operator bool()

SBPlatform::operator bool ( ) const
explicit

Definition at line 325 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator=()

SBPlatform & SBPlatform::operator= ( const SBPlatform rhs)

Definition at line 304 of file SBPlatform.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ Put()

SBError SBPlatform::Put ( SBFileSpec src,
SBFileSpec dst 
)

◆ Run()

SBError SBPlatform::Run ( SBPlatformShellCommand shell_command)

◆ SetFilePermissions()

SBError SBPlatform::SetFilePermissions ( const char *  path,
uint32_t  file_permissions 
)

◆ SetSDKRoot()

void SBPlatform::SetSDKRoot ( const char *  sysroot)

Definition at line 488 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetSP()

void SBPlatform::SetSP ( const lldb::PlatformSP &  platform_sp)
protected

◆ SetWorkingDirectory()

bool SBPlatform::SetWorkingDirectory ( const char *  path)

Definition at line 361 of file SBPlatform.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

Friends And Related Function Documentation

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 173 of file SBPlatform.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 174 of file SBPlatform.h.

Member Data Documentation

◆ m_opaque_sp

lldb::PlatformSP lldb::SBPlatform::m_opaque_sp
protected

The documentation for this class was generated from the following files: