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 |
Get the error code. | |
SBStructuredData | GetErrorData () const |
Get the error in machine-readable form. | |
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 (lldb_private::Status &&error) | |
lldb_private::Status * | get () |
lldb_private::Status * | operator-> () |
const lldb_private::Status & | operator* () const |
lldb_private::Status & | ref () |
void | SetError (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 | SBFrame |
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 23 of file SBError.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb_private::python::SWIGBridge, operator=(), SBError(), and ~SBError().
SBError::SBError | ( | const lldb::SBError & | rhs | ) |
Definition at line 25 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBError().
SBError::SBError | ( | const char * | message | ) |
Definition at line 32 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and SetErrorString().
|
default |
|
protected |
Definition at line 38 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
lldb::SBError::__attribute__ | ( | (format(printf, 2, 3)) | ) | const |
References GetDescription(), and IsValid().
void SBError::Clear | ( | ) |
Definition at line 63 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBDebugger::CreateTarget(), and ~SBError().
|
private |
Definition at line 182 of file SBError.cpp.
References m_opaque_up.
Referenced by ref(), SetError(), SetError(), SetErrorString(), SetErrorToErrno(), and SetErrorToGenericError().
bool SBError::Fail | ( | ) | const |
Definition at line 70 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBTarget::BreakpointsCreateFromFile(), lldb::SBBreakpointName::SetScriptCallbackBody(), and ~SBError().
|
protected |
Definition at line 189 of file SBError.cpp.
References m_opaque_up.
Referenced by lldb_private::python::SWIGBridge.
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 55 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBDebugger::CreateTarget(), lldb::SBFrame::EvaluateExpression(), GetDescription(), and ~SBError().
bool SBError::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 201 of file SBError.cpp.
References GetCString(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by __attribute__().
uint32_t SBError::GetError | ( | ) | const |
Get the error code.
Definition at line 91 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBError().
SBStructuredData SBError::GetErrorData | ( | ) | const |
Get the error in machine-readable form.
Particularly useful for compiler diagnostics.
Definition at line 102 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, m_opaque_up, and SBStructuredData.
Referenced by ~SBError().
ErrorType SBError::GetType | ( | ) | const |
Definition at line 114 of file SBError.cpp.
References lldb::eErrorTypeInvalid, LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBError().
bool SBError::IsValid | ( | ) | const |
Definition at line 172 of file SBError.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by __attribute__().
|
explicit |
Definition at line 176 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
|
protected |
Definition at line 196 of file SBError.cpp.
References m_opaque_up.
Referenced by lldb_private::python::SWIGBridge.
|
protected |
Definition at line 187 of file SBError.cpp.
References m_opaque_up.
Referenced by lldb_private::python::SWIGBridge.
const SBError & SBError::operator= | ( | const lldb::SBError & | rhs | ) |
Definition at line 45 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and SBError().
Referenced by ~SBError().
|
protected |
Definition at line 191 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_private::python::SWIGBridge, lldb::SBProcess::LoadImage(), lldb::SBPlatform::MakeDirectory(), lldb::SBProcess::ReadCStringFromMemory(), lldb::SBProcess::ReadMemory(), lldb::SBProcess::ReadPointerFromMemory(), lldb::SBProcess::ReadUnsignedFromMemory(), lldb::SBDebugger::SetCurrentPlatform(), lldb::SBPlatform::SetFilePermissions(), and lldb::SBProcess::WriteMemory().
|
protected |
Definition at line 131 of file SBError.cpp.
References CreateIfNeeded(), and m_opaque_up.
void SBError::SetError | ( | uint32_t | err, |
lldb::ErrorType | type ) |
Definition at line 124 of file SBError.cpp.
References CreateIfNeeded(), LLDB_INSTRUMENT_VA, m_opaque_up, and lldb_private::Status.
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_private::python::SWIGBridge, lldb::SBThread::ReturnFromFrame(), lldb::SBProcess::SendEventData(), lldb::SBDebugger::SetInputString(), lldb::SBDebugger::SetInternalVariable(), lldb::SBBreakpoint::SetScriptCallbackBody(), lldb::SBBreakpointLocation::SetScriptCallbackBody(), lldb::SBBreakpointName::SetScriptCallbackBody(), lldb::SBBreakpoint::SetScriptCallbackFunction(), lldb::SBBreakpointLocation::SetScriptCallbackFunction(), lldb::SBBreakpointName::SetScriptCallbackFunction(), lldb::SBProcess::Signal(), lldb::SBProcess::Stop(), lldb::SBProcess::UnloadImage(), lldb::SBThread::UnwindInnermostExpression(), and ~SBError().
void SBError::SetErrorString | ( | const char * | err_str | ) |
Definition at line 150 of file SBError.cpp.
References CreateIfNeeded(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBTarget::BreakpointsCreateFromFile(), lldb::SBTarget::BreakpointsWriteToFile(), lldb::SBTarget::BreakpointsWriteToFile(), SBError(), lldb::SBTarget::SetSectionLoadAddress(), and ~SBError().
void SBError::SetErrorToErrno | ( | ) |
Definition at line 136 of file SBError.cpp.
References CreateIfNeeded(), lldb_private::Status::FromErrno(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBError().
void SBError::SetErrorToGenericError | ( | ) |
Definition at line 143 of file SBError.cpp.
References CreateIfNeeded(), LLDB_INSTRUMENT_VA, m_opaque_up, and lldb_private::Status.
Referenced by ~SBError().
bool SBError::Success | ( | ) | const |
Definition at line 81 of file SBError.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBDebugger::CreateTarget(), lldb::SBFrame::EvaluateExpression(), lldb::SBThread::UnwindInnermostExpression(), and ~SBError().
|
friend |
Definition at line 104 of file SBError.h.
References error(), get(), operator*(), operator->(), ref(), SBError(), and SetError().
|
friend |
|
friend |
|
friend |
Definition at line 81 of file SBError.h.
References SBBreakpointLocation.
Referenced by SBBreakpointLocation.
|
friend |
Definition at line 82 of file SBError.h.
References SBBreakpointName.
Referenced by SBBreakpointName.
|
friend |
Definition at line 83 of file SBError.h.
References SBCommandReturnObject.
Referenced by SBCommandReturnObject.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 85 of file SBError.h.
References SBSaveCoreOptions.
Referenced by SBSaveCoreOptions.
|
friend |
Definition at line 95 of file SBError.h.
References SBStructuredData.
Referenced by GetErrorData(), SBStructuredData, and ~SBError().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 119 of file SBError.h.
Referenced by Clear(), CreateIfNeeded(), Fail(), get(), GetCString(), GetDescription(), GetError(), GetErrorData(), GetType(), operator bool(), operator*(), operator->(), operator=(), ref(), SBError(), SBError(), SetError(), SetError(), SetErrorString(), SetErrorToErrno(), SetErrorToGenericError(), and Success().