LLDB mainline
|
#include <SBError.h>
Public Member Functions | |
SBError () | |
SBError (const lldb::SBError &rhs) | |
SBError (const char *message) | |
~SBError () | |
const SBError & | operator= (const lldb::SBError &rhs) |
const char * | GetCString () const |
Get the error string as a NULL terminated UTF8 c-string. | |
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) |
__attribute__ ((format(printf, 2, 3))) int SetErrorStringWithFormat(const char *format | |
operator bool () const | |
bool | IsValid () const |
bool | GetDescription (lldb::SBStream &description) |
Protected Member Functions | |
SBError (const lldb_private::Status &error) | |
lldb_private::Status * | get () |
lldb_private::Status * | operator-> () |
const lldb_private::Status & | operator* () const |
lldb_private::Status & | ref () |
void | SetError (const lldb_private::Status &lldb_error) |
Private Member Functions | |
void | CreateIfNeeded () |
Private Attributes | |
std::unique_ptr< lldb_private::Status > | m_opaque_up |
Friends | |
class | SBBreakpoint |
class | SBBreakpointLocation |
class | SBBreakpointName |
class | SBCommandReturnObject |
class | SBCommunication |
class | SBSaveCoreOptions |
class | SBData |
class | SBDebugger |
class | SBFile |
class | SBFormat |
class | SBHostOS |
class | SBPlatform |
class | SBProcess |
class | SBReproducer |
class | SBStructuredData |
class | SBTarget |
class | SBThread |
class | SBTrace |
class | SBValue |
class | SBValueList |
class | SBWatchpoint |
class | lldb_private::ScriptInterpreter |
class | lldb_private::python::SWIGBridge |
SBError::SBError | ( | ) |
Definition at line 20 of file SBError.cpp.
References LLDB_INSTRUMENT_VA.
SBError::SBError | ( | const lldb::SBError & | rhs | ) |
Definition at line 22 of file SBError.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.
SBError::SBError | ( | const char * | message | ) |
Definition at line 28 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and SetErrorString().
|
default |
|
protected |
Definition at line 34 of file SBError.cpp.
References LLDB_INSTRUMENT_VA.
lldb::SBError::__attribute__ | ( | (format(printf, 2, 3)) | ) | const |
void SBError::Clear | ( | ) |
Definition at line 57 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBDebugger::CreateTarget().
|
private |
Definition at line 158 of file SBError.cpp.
References m_opaque_up.
Referenced by ref(), SetError(), SetErrorString(), SetErrorToErrno(), and SetErrorToGenericError().
bool SBError::Fail | ( | ) | const |
Definition at line 64 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBTarget::BreakpointsCreateFromFile(), and lldb::SBBreakpointName::SetScriptCallbackBody().
|
protected |
Definition at line 165 of file SBError.cpp.
References m_opaque_up.
const char * SBError::GetCString | ( | ) | const |
Get the error string as a NULL terminated UTF8 c-string.
This SBError object owns the returned string and this object must be kept around long enough to use the returned string.
Definition at line 49 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBDebugger::CreateTarget(), lldb::SBFrame::EvaluateExpression(), and GetDescription().
bool SBError::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 177 of file SBError.cpp.
References GetCString(), LLDB_INSTRUMENT_VA, and m_opaque_up.
uint32_t SBError::GetError | ( | ) | const |
Definition at line 85 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
ErrorType SBError::GetType | ( | ) | const |
Definition at line 96 of file SBError.cpp.
References lldb::eErrorTypeInvalid, LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBError::IsValid | ( | ) | const |
Definition at line 148 of file SBError.cpp.
References LLDB_INSTRUMENT_VA.
|
explicit |
Definition at line 152 of file SBError.cpp.
References LLDB_INSTRUMENT_VA.
|
protected |
Definition at line 172 of file SBError.cpp.
References m_opaque_up.
|
protected |
Definition at line 163 of file SBError.cpp.
References m_opaque_up.
const SBError & SBError::operator= | ( | const lldb::SBError & | rhs | ) |
Definition at line 41 of file SBError.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.
|
protected |
Definition at line 167 of file SBError.cpp.
References CreateIfNeeded(), and m_opaque_up.
Referenced by lldb::SBProcess::AllocateMemory(), lldb::SBTarget::BreakpointsCreateFromFile(), lldb::SBTarget::BreakpointsWriteToFile(), lldb::SBPlatform::ConnectRemote(), lldb::SBProcess::Continue(), lldb::SBDebugger::CreateTarget(), lldb::SBPlatform::ExecuteConnected(), lldb::SBPlatform::Get(), lldb::SBProcess::GetMemoryRegionInfo(), lldb::SBTarget::Install(), lldb::SBProcess::LoadImage(), lldb::SBPlatform::MakeDirectory(), lldb::SBProcess::ReadCStringFromMemory(), lldb::SBProcess::ReadMemory(), lldb::SBTarget::ReadMemory(), lldb::SBProcess::ReadPointerFromMemory(), lldb::SBProcess::ReadUnsignedFromMemory(), lldb::SBThread::ResumeNewPlan(), lldb::SBDebugger::SetCurrentPlatform(), lldb::SBPlatform::SetFilePermissions(), and lldb::SBProcess::WriteMemory().
|
protected |
Definition at line 113 of file SBError.cpp.
References CreateIfNeeded(), and m_opaque_up.
void SBError::SetError | ( | uint32_t | err, |
lldb::ErrorType | type | ||
) |
Definition at line 106 of file SBError.cpp.
References CreateIfNeeded(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBBreakpoint::AddNameWithErrorHandling(), lldb::SBProcess::DeallocateMemory(), lldb::SBProcess::Destroy(), lldb::SBProcess::Detach(), lldb::SBStructuredData::GetDescription(), lldb::SBValue::GetError(), lldb::SBValueList::GetError(), lldb::SBWatchpoint::GetError(), lldb::SBThread::JumpToLine(), lldb::SBProcess::Kill(), lldb::SBThread::ReturnFromFrame(), lldb::SBProcess::SendEventData(), lldb::SBDebugger::SetInputString(), lldb::SBDebugger::SetInternalVariable(), lldb::SBBreakpoint::SetScriptCallbackBody(), lldb::SBBreakpointLocation::SetScriptCallbackBody(), lldb::SBBreakpointName::SetScriptCallbackBody(), lldb::SBBreakpointLocation::SetScriptCallbackFunction(), lldb::SBBreakpoint::SetScriptCallbackFunction(), lldb::SBBreakpointName::SetScriptCallbackFunction(), lldb::SBProcess::Signal(), lldb::SBProcess::Stop(), lldb::SBProcess::UnloadImage(), and lldb::SBThread::UnwindInnermostExpression().
void SBError::SetErrorString | ( | const char * | err_str | ) |
Definition at line 132 of file SBError.cpp.
References CreateIfNeeded(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBBreakpoint::AddNameWithErrorHandling(), lldb::SBProcess::AllocateMemory(), lldb::SBTarget::BreakpointsCreateFromFile(), lldb::SBTarget::BreakpointsWriteToFile(), lldb::SBPlatform::ConnectRemote(), lldb::SBProcess::Continue(), lldb::SBDebugger::CreateTarget(), lldb::SBProcess::DeallocateMemory(), lldb::SBProcess::Destroy(), lldb::SBProcess::Detach(), lldb::SBPlatform::ExecuteConnected(), lldb::SBPlatform::Get(), lldb::SBProcess::GetMemoryRegionInfo(), lldb::SBProcess::GetNumSupportedHardwareWatchpoints(), lldb::SBThread::JumpToLine(), lldb::SBProcess::Kill(), lldb::SBProcess::LoadImage(), lldb::SBPlatform::MakeDirectory(), lldb::SBProcess::ReadCStringFromMemory(), lldb::SBProcess::ReadMemory(), lldb::SBTarget::ReadMemory(), lldb::SBProcess::ReadPointerFromMemory(), lldb::SBProcess::ReadUnsignedFromMemory(), lldb::SBThread::ResumeNewPlan(), SBError(), lldb::SBProcess::SendEventData(), lldb::SBPlatform::SetFilePermissions(), lldb::SBDebugger::SetInputString(), lldb::SBBreakpoint::SetScriptCallbackBody(), lldb::SBBreakpointLocation::SetScriptCallbackBody(), lldb::SBBreakpointLocation::SetScriptCallbackFunction(), lldb::SBBreakpoint::SetScriptCallbackFunction(), lldb::SBBreakpointName::SetScriptCallbackFunction(), lldb::SBTarget::SetSectionLoadAddress(), lldb::SBProcess::Signal(), lldb::SBThread::StepOverUntil(), lldb::SBProcess::Stop(), lldb::SBProcess::UnloadImage(), and lldb::SBProcess::WriteMemory().
void SBError::SetErrorToErrno | ( | ) |
Definition at line 118 of file SBError.cpp.
References CreateIfNeeded(), LLDB_INSTRUMENT_VA, and m_opaque_up.
void SBError::SetErrorToGenericError | ( | ) |
Definition at line 125 of file SBError.cpp.
References CreateIfNeeded(), LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBError::Success | ( | ) | const |
Definition at line 75 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBDebugger::CreateTarget(), lldb::SBFrame::EvaluateExpression(), and lldb::SBThread::UnwindInnermostExpression().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 113 of file SBError.h.
Referenced by Clear(), CreateIfNeeded(), Fail(), get(), GetCString(), GetDescription(), GetError(), GetType(), operator*(), operator->(), operator=(), ref(), SBError(), SetError(), SetErrorString(), SetErrorToErrno(), SetErrorToGenericError(), and Success().