LLDB  mainline
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 ()
 
 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
 

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 86 of file SBPlatform.h.

Constructor & Destructor Documentation

◆ SBPlatform() [1/2]

SBPlatform::SBPlatform ( )

Definition at line 264 of file SBPlatform.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBPlatform() [2/2]

SBPlatform::SBPlatform ( const char *  platform_name)

Definition at line 268 of file SBPlatform.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_sp.

◆ ~SBPlatform()

SBPlatform::~SBPlatform ( )

Definition at line 276 of file SBPlatform.cpp.

Member Function Documentation

◆ Clear()

void SBPlatform::Clear ( )

◆ ConnectRemote()

SBError SBPlatform::ConnectRemote ( SBPlatformConnectOptions connect_options)

◆ DisconnectRemote()

void SBPlatform::DisconnectRemote ( )

◆ ExecuteConnected()

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

Definition at line 549 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 
)

◆ GetFilePermissions()

uint32_t SBPlatform::GetFilePermissions ( const char *  path)

Definition at line 579 of file SBPlatform.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBPlatform >().

◆ GetHostname()

const char * SBPlatform::GetHostname ( )

◆ GetName()

const char * SBPlatform::GetName ( )

◆ GetOSBuild()

const char * SBPlatform::GetOSBuild ( )

◆ GetOSDescription()

const char * SBPlatform::GetOSDescription ( )

◆ GetOSMajorVersion()

uint32_t SBPlatform::GetOSMajorVersion ( )

◆ GetOSMinorVersion()

uint32_t SBPlatform::GetOSMinorVersion ( )

◆ GetOSUpdateVersion()

uint32_t SBPlatform::GetOSUpdateVersion ( )

◆ GetSP()

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

◆ GetTriple()

const char * SBPlatform::GetTriple ( )

◆ GetUnixSignals()

SBUnixSignals SBPlatform::GetUnixSignals ( ) const

◆ GetWorkingDirectory()

const char * SBPlatform::GetWorkingDirectory ( )

◆ Install()

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

◆ IsConnected()

bool SBPlatform::IsConnected ( )

◆ IsValid()

bool SBPlatform::IsValid ( ) const

◆ Kill()

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

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

References LLDB_RECORD_METHOD_CONST_NO_ARGS, 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)

Friends And Related Function Documentation

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 150 of file SBPlatform.h.

◆ SBTarget

friend class SBTarget
friend

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