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

#include <SBError.h>

Public Member Functions

 SBError ()
 
 SBError (const lldb::SBError &rhs)
 
 ~SBError ()
 
const SBErroroperator= (const lldb::SBError &rhs)
 
const char * GetCString () const
 
void Clear ()
 
bool Fail () const
 
bool Success () const
 
uint32_t GetError () const
 
lldb::ErrorType GetType () const
 
void SetError (uint32_t err, lldb::ErrorType type)
 
void SetErrorToErrno ()
 
void SetErrorToGenericError ()
 
void SetErrorString (const char *err_str)
 
int SetErrorStringWithFormat (const char *format,...) __attribute__((format(printf
 
int operator bool () const
 
bool IsValid () const
 
bool GetDescription (lldb::SBStream &description)
 

Protected Member Functions

lldb_private::Statusget ()
 
lldb_private::Statusoperator-> ()
 
const lldb_private::Statusoperator* () const
 
lldb_private::Statusref ()
 
void SetError (const lldb_private::Status &lldb_error)
 

Friends

class SBBreakpoint
 
class SBBreakpointLocation
 
class SBBreakpointName
 
class SBCommandReturnObject
 
class SBCommunication
 
class SBData
 
class SBDebugger
 
class SBHostOS
 
class SBPlatform
 
class SBProcess
 
class SBReproducer
 
class SBStructuredData
 
class SBTarget
 
class SBThread
 
class SBTrace
 
class SBValue
 
class SBWatchpoint
 

Detailed Description

Definition at line 16 of file SBError.h.

Constructor & Destructor Documentation

◆ SBError() [1/2]

SBError::SBError ( )

Definition at line 20 of file SBError.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBError() [2/2]

SBError::SBError ( const lldb::SBError rhs)

Definition at line 22 of file SBError.cpp.

References lldb_private::clone(), and LLDB_RECORD_CONSTRUCTOR.

◆ ~SBError()

SBError::~SBError ( )

Definition at line 28 of file SBError.cpp.

Member Function Documentation

◆ Clear()

void SBError::Clear ( )

◆ Fail()

bool SBError::Fail ( ) const

◆ get()

lldb_private::Status * SBError::get ( )
protected

Definition at line 157 of file SBError.cpp.

◆ GetCString()

const char * SBError::GetCString ( ) const

◆ GetDescription()

bool SBError::GetDescription ( lldb::SBStream description)

◆ GetError()

uint32_t SBError::GetError ( ) const

◆ GetType()

ErrorType SBError::GetType ( ) const

◆ IsValid()

bool SBError::IsValid ( ) const

◆ operator bool()

SBError::operator bool ( ) const
explicit

Definition at line 144 of file SBError.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator*()

const lldb_private::Status & SBError::operator* ( ) const
protected

Definition at line 164 of file SBError.cpp.

◆ operator->()

lldb_private::Status * SBError::operator-> ( )
protected

Definition at line 155 of file SBError.cpp.

◆ operator=()

const SBError & SBError::operator= ( const lldb::SBError rhs)

Definition at line 30 of file SBError.cpp.

References lldb_private::clone(), LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ ref()

lldb_private::Status & SBError::ref ( )
protected

◆ SetError() [1/2]

void SBError::SetError ( uint32_t  err,
lldb::ErrorType  type 
)

◆ SetError() [2/2]

void SBError::SetError ( const lldb_private::Status lldb_error)
protected

Definition at line 105 of file SBError.cpp.

◆ SetErrorString()

void SBError::SetErrorString ( const char *  err_str)

Definition at line 124 of file SBError.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb::SBBreakpoint::AddLocation(), lldb::SBTarget::AppendImageSearchPath(), lldb::SBTarget::Attach(), lldb::SBTarget::AttachToProcessWithID(), lldb::SBTarget::AttachToProcessWithName(), lldb::SBTarget::BreakpointsCreateFromFile(), lldb::SBTarget::BreakpointsWriteToFile(), lldb::SBPlatform::ConnectRemote(), lldb::SBTarget::ConnectRemote(), lldb::SBProcess::Continue(), lldb::SBDebugger::CreateTarget(), lldb::SBProcess::Destroy(), lldb::SBProcess::Detach(), lldb::SBPlatform::ExecuteConnected(), lldb::SBPlatform::Get(), lldb::SBData::GetAddress(), lldb::SBData::GetDouble(), lldb::SBData::GetFloat(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBData::GetLongDouble(), lldb::SBProcess::GetMemoryRegionInfo(), lldb::SBTrace::GetMetaData(), lldb::SBProcess::GetNumSupportedHardwareWatchpoints(), lldb::SBData::GetSignedInt16(), lldb::SBData::GetSignedInt32(), lldb::SBData::GetSignedInt64(), lldb::SBData::GetSignedInt8(), lldb::SBData::GetString(), lldb::SBTrace::GetTraceConfig(), lldb::SBTrace::GetTraceData(), lldb::SBTraceOptions::getTraceParams(), lldb::SBData::GetUnsignedInt16(), lldb::SBData::GetUnsignedInt32(), lldb::SBData::GetUnsignedInt64(), lldb::SBData::GetUnsignedInt8(), lldb::SBValue::GetValueAsSigned(), lldb::SBValue::GetValueAsUnsigned(), lldb::SBThread::JumpToLine(), lldb::SBProcess::Kill(), lldb::SBTarget::Launch(), lldb::SBTarget::LoadCore(), lldb::SBProcess::LoadImage(), lldb::SBProcess::LoadImageUsingPaths(), lldb::SBPlatform::MakeDirectory(), lldb::SBThreadPlan::QueueThreadPlanForRunToAddress(), lldb::SBThreadPlan::QueueThreadPlanForStepInRange(), lldb::SBThreadPlan::QueueThreadPlanForStepOut(), lldb::SBThreadPlan::QueueThreadPlanForStepOverRange(), lldb::SBThreadPlan::QueueThreadPlanForStepScripted(), lldb::SBProcess::ReadCStringFromMemory(), lldb::SBProcess::ReadMemory(), lldb::SBTarget::ReadMemory(), lldb::SBProcess::ReadPointerFromMemory(), lldb::SBData::ReadRawData(), lldb::SBProcess::ReadUnsignedFromMemory(), lldb_private::repro::RegisterMethods< SBError >(), lldb::SBProcess::RemoteAttachToProcessWithID(), lldb::SBProcess::RemoteLaunch(), lldb::SBThread::Resume(), lldb::SBDebugger::RunREPL(), lldb::SBThread::RunToAddress(), lldb::SBProcess::SaveCore(), lldb::SBProcess::SendEventData(), lldb::SBValue::SetData(), lldb::SBPlatform::SetFilePermissions(), lldb::SBStructuredData::SetFromJSON(), lldb::SBBreakpointLocation::SetScriptCallbackBody(), lldb::SBBreakpoint::SetScriptCallbackBody(), lldb::SBTarget::SetSectionLoadAddress(), lldb::SBProcess::Signal(), lldb::SBProcess::StartTrace(), lldb::SBThread::StepInstruction(), lldb::SBThread::StepInto(), lldb::SBThread::StepOut(), lldb::SBThread::StepOutOfFrame(), lldb::SBThread::StepOver(), lldb::SBThread::StepOverUntil(), lldb::SBThread::StepUsingScriptedThreadPlan(), lldb::SBProcess::Stop(), lldb::SBTrace::StopTrace(), lldb::SBThread::Suspend(), lldb::SBProcess::UnloadImage(), lldb::SBValue::Watch(), lldb::SBTarget::WatchAddress(), and lldb::SBProcess::WriteMemory().

◆ SetErrorStringWithFormat()

int SBError::SetErrorStringWithFormat ( const char *  format,
  ... 
)

◆ SetErrorToErrno()

void SBError::SetErrorToErrno ( )

Definition at line 110 of file SBError.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

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

◆ SetErrorToGenericError()

void SBError::SetErrorToGenericError ( )

Definition at line 117 of file SBError.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

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

◆ Success()

bool SBError::Success ( ) const

Friends And Related Function Documentation

◆ SBBreakpoint

friend class SBBreakpoint
friend

Definition at line 56 of file SBError.h.

◆ SBBreakpointLocation

friend class SBBreakpointLocation
friend

Definition at line 57 of file SBError.h.

◆ SBBreakpointName

friend class SBBreakpointName
friend

Definition at line 58 of file SBError.h.

◆ SBCommandReturnObject

friend class SBCommandReturnObject
friend

Definition at line 59 of file SBError.h.

◆ SBCommunication

friend class SBCommunication
friend

Definition at line 60 of file SBError.h.

◆ SBData

friend class SBData
friend

Definition at line 61 of file SBError.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 62 of file SBError.h.

◆ SBHostOS

friend class SBHostOS
friend

Definition at line 63 of file SBError.h.

◆ SBPlatform

friend class SBPlatform
friend

Definition at line 64 of file SBError.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 65 of file SBError.h.

◆ SBReproducer

friend class SBReproducer
friend

Definition at line 66 of file SBError.h.

◆ SBStructuredData

friend class SBStructuredData
friend

Definition at line 67 of file SBError.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 68 of file SBError.h.

◆ SBThread

friend class SBThread
friend

Definition at line 69 of file SBError.h.

◆ SBTrace

friend class SBTrace
friend

Definition at line 70 of file SBError.h.

◆ SBValue

friend class SBValue
friend

Definition at line 71 of file SBError.h.

◆ SBWatchpoint

friend class SBWatchpoint
friend

Definition at line 72 of file SBError.h.


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