Changeset View
Changeset View
Standalone View
Standalone View
source/API/SBThread.cpp
Show First 20 Lines • Show All 1,460 Lines • ▼ Show 20 Lines | |||||
uint32_t SBThread::GetExtendedBacktraceOriginatingIndexID() { | uint32_t SBThread::GetExtendedBacktraceOriginatingIndexID() { | ||||
ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); | ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); | ||||
if (thread_sp) | if (thread_sp) | ||||
return thread_sp->GetExtendedBacktraceOriginatingIndexID(); | return thread_sp->GetExtendedBacktraceOriginatingIndexID(); | ||||
return LLDB_INVALID_INDEX32; | return LLDB_INVALID_INDEX32; | ||||
} | } | ||||
SBThread SBThread::GetCurrentExceptionBacktrace() { | |||||
ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); | |||||
if (!thread_sp) return SBThread(); | |||||
return SBThread(thread_sp->GetCurrentExceptionBacktrace()); | |||||
} | |||||
SBValue SBThread::GetCurrentException() { | |||||
ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); | |||||
if (!thread_sp) return SBValue(); | |||||
return SBValue(thread_sp->GetCurrentException()); | |||||
} | |||||
bool SBThread::SafeToCallFunctions() { | bool SBThread::SafeToCallFunctions() { | ||||
ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); | ThreadSP thread_sp(m_opaque_sp->GetThreadSP()); | ||||
if (thread_sp) | if (thread_sp) | ||||
return thread_sp->SafeToCallFunctions(); | return thread_sp->SafeToCallFunctions(); | ||||
return true; | return true; | ||||
} | } | ||||
lldb_private::Thread *SBThread::operator->() { | lldb_private::Thread *SBThread::operator->() { | ||||
Show All 14 Lines |