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 ()
 
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 316 of file SBPlatform.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBPlatform() [2/3]

SBPlatform::SBPlatform ( const char *  platform_name)

Definition at line 320 of file SBPlatform.cpp.

References error(), LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ SBPlatform() [3/3]

SBPlatform::SBPlatform ( const SBPlatform rhs)

Definition at line 328 of file SBPlatform.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ ~SBPlatform()

SBPlatform::~SBPlatform ( )
default

Member Function Documentation

◆ Clear()

void SBPlatform::Clear ( )

Definition at line 363 of file SBPlatform.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_sp.

◆ ConnectRemote()

SBError SBPlatform::ConnectRemote ( SBPlatformConnectOptions connect_options)

◆ DisconnectRemote()

void SBPlatform::DisconnectRemote ( )

Definition at line 424 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ ExecuteConnected()

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

Definition at line 624 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 693 of file SBPlatform.cpp.

References GetSP(), LLDB_RECORD_METHOD_NO_ARGS, LLDB_RECORD_RESULT, and lldb::SBEnvironment.

◆ GetFilePermissions()

uint32_t SBPlatform::GetFilePermissions ( const char *  path)

Definition at line 654 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ GetHostname()

const char * SBPlatform::GetHostname ( )

Definition at line 490 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetHostPlatform()

SBPlatform SBPlatform::GetHostPlatform ( )
static

◆ GetName()

const char * SBPlatform::GetName ( )

◆ GetOSBuild()

const char * SBPlatform::GetOSBuild ( )

◆ GetOSDescription()

const char * SBPlatform::GetOSDescription ( )

◆ GetOSMajorVersion()

uint32_t SBPlatform::GetOSMajorVersion ( )

Definition at line 499 of file SBPlatform.cpp.

References GetSP(), LLDB_RECORD_METHOD_NO_ARGS, and UINT32_MAX.

◆ GetOSMinorVersion()

uint32_t SBPlatform::GetOSMinorVersion ( )

Definition at line 508 of file SBPlatform.cpp.

References GetSP(), LLDB_RECORD_METHOD_NO_ARGS, and UINT32_MAX.

◆ GetOSUpdateVersion()

uint32_t SBPlatform::GetOSUpdateVersion ( )

Definition at line 517 of file SBPlatform.cpp.

References GetSP(), LLDB_RECORD_METHOD_NO_ARGS, and UINT32_MAX.

◆ GetSP()

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

◆ GetTriple()

const char * SBPlatform::GetTriple ( )

◆ GetUnixSignals()

SBUnixSignals SBPlatform::GetUnixSignals ( ) const

◆ GetWorkingDirectory()

const char * SBPlatform::GetWorkingDirectory ( )

Definition at line 384 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ Install()

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

◆ IsConnected()

bool SBPlatform::IsConnected ( )

Definition at line 432 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsValid()

bool SBPlatform::IsValid ( ) const

Definition at line 353 of file SBPlatform.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ Kill()

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

Definition at line 616 of file SBPlatform.cpp.

References ExecuteConnected(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ 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 357 of file SBPlatform.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator=()

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

Definition at line 334 of file SBPlatform.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, 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 
)

◆ SetSP()

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

◆ SetWorkingDirectory()

bool SBPlatform::SetWorkingDirectory ( const char *  path)

Definition at line 393 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

Friends And Related Function Documentation

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 171 of file SBPlatform.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 172 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: