LLDB mainline
|
#include <SBFrame.h>
Public Member Functions | |
SBFrame () | |
SBFrame (const lldb::SBFrame &rhs) | |
const lldb::SBFrame & | operator= (const lldb::SBFrame &rhs) |
~SBFrame () | |
bool | IsEqual (const lldb::SBFrame &that) const |
operator bool () const | |
bool | IsValid () const |
uint32_t | GetFrameID () const |
lldb::addr_t | GetCFA () const |
lldb::addr_t | GetPC () const |
bool | SetPC (lldb::addr_t new_pc) |
lldb::addr_t | GetSP () const |
lldb::addr_t | GetFP () const |
lldb::SBAddress | GetPCAddress () const |
lldb::SBSymbolContext | GetSymbolContext (uint32_t resolve_scope) const |
lldb::SBModule | GetModule () const |
lldb::SBCompileUnit | GetCompileUnit () const |
lldb::SBFunction | GetFunction () const |
lldb::SBSymbol | GetSymbol () const |
lldb::SBBlock | GetBlock () const |
Gets the deepest block that contains the frame PC. | |
const char * | GetFunctionName () |
Get the appropriate function name for this frame. | |
const char * | GetDisplayFunctionName () |
const char * | GetFunctionName () const |
lldb::LanguageType | GuessLanguage () const |
bool | IsInlined () |
Return true if this frame represents an inlined function. | |
bool | IsInlined () const |
bool | IsArtificial () |
bool | IsArtificial () const |
bool | IsHidden () const |
Return whether a frame recognizer decided this frame should not be displayes in backtraces etc. | |
lldb::SBValue | EvaluateExpression (const char *expr) |
The version that doesn't supply a 'use_dynamic' value will use the target's default. | |
lldb::SBValue | EvaluateExpression (const char *expr, lldb::DynamicValueType use_dynamic) |
lldb::SBValue | EvaluateExpression (const char *expr, lldb::DynamicValueType use_dynamic, bool unwind_on_error) |
lldb::SBValue | EvaluateExpression (const char *expr, const SBExpressionOptions &options) |
lldb::SBBlock | GetFrameBlock () const |
Gets the lexical block that defines the stack frame. | |
lldb::SBLineEntry | GetLineEntry () const |
lldb::SBThread | GetThread () const |
const char * | Disassemble () const |
void | Clear () |
bool | operator== (const lldb::SBFrame &rhs) const |
bool | operator!= (const lldb::SBFrame &rhs) const |
lldb::SBValueList | GetVariables (bool arguments, bool locals, bool statics, bool in_scope_only) |
The version that doesn't supply a 'use_dynamic' value will use the target's default. | |
lldb::SBValueList | GetVariables (bool arguments, bool locals, bool statics, bool in_scope_only, lldb::DynamicValueType use_dynamic) |
lldb::SBValueList | GetVariables (const lldb::SBVariablesOptions &options) |
lldb::SBValueList | GetRegisters () |
lldb::SBValue | FindRegister (const char *name) |
lldb::SBValue | FindVariable (const char *var_name) |
The version that doesn't supply a 'use_dynamic' value will use the target's default. | |
lldb::SBValue | FindVariable (const char *var_name, lldb::DynamicValueType use_dynamic) |
lldb::SBValue | GetValueForVariablePath (const char *var_expr_cstr, DynamicValueType use_dynamic) |
lldb::SBValue | GetValueForVariablePath (const char *var_path) |
The version that doesn't supply a 'use_dynamic' value will use the target's default. | |
lldb::SBValue | FindValue (const char *name, ValueType value_type) |
Find variables, register sets, registers, or persistent variables using the frame as the scope. | |
lldb::SBValue | FindValue (const char *name, ValueType value_type, lldb::DynamicValueType use_dynamic) |
bool | GetDescription (lldb::SBStream &description) |
SBError | GetDescriptionWithFormat (const SBFormat &format, SBStream &output) |
Similar to GetDescription() but the format of the description can be configured via the format parameter. | |
Protected Member Functions | |
SBFrame (const lldb::StackFrameSP &lldb_object_sp) | |
lldb::StackFrameSP | GetFrameSP () const |
void | SetFrameSP (const lldb::StackFrameSP &lldb_object_sp) |
Protected Attributes | |
lldb::ExecutionContextRefSP | m_opaque_sp |
Friends | |
class | SBBlock |
class | SBExecutionContext |
class | SBInstruction |
class | SBThread |
class | SBValue |
class | lldb_private::python::SWIGBridge |
class | lldb_private::lua::SWIGBridge |
SBFrame::SBFrame | ( | ) |
Definition at line 60 of file SBFrame.cpp.
References LLDB_INSTRUMENT_VA.
SBFrame::SBFrame | ( | const lldb::SBFrame & | rhs | ) |
Definition at line 69 of file SBFrame.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
default |
References lldb::operator==().
|
protected |
Definition at line 64 of file SBFrame.cpp.
References LLDB_INSTRUMENT_VA.
void SBFrame::Clear | ( | ) |
Definition at line 437 of file SBFrame.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBFrame::Disassemble | ( | ) | const |
Definition at line 709 of file SBFrame.cpp.
References lldb_private::ConstString::GetCString(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBValue SBFrame::EvaluateExpression | ( | const char * | expr | ) |
The version that doesn't supply a 'use_dynamic' value will use the target's default.
Definition at line 1011 of file SBFrame.cpp.
References lldb_private::StackFrame::CalculateTarget(), lldb_private::ValueObjectConstResult::Create(), error(), EvaluateExpression(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::StackFrame::GetLanguage(), lldb_private::TargetProperties::GetLanguage(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::SourceLanguage::name, lldb::SBExpressionOptions::SetFetchDynamicValue(), lldb::SBExpressionOptions::SetIgnoreBreakpoints(), lldb::SBExpressionOptions::SetLanguage(), lldb::SBValue::SetSP(), lldb::SBExpressionOptions::SetUnwindOnError(), and lldb_private::SourceLanguage::version.
Referenced by EvaluateExpression().
lldb::SBValue SBFrame::EvaluateExpression | ( | const char * | expr, |
const SBExpressionOptions & | options | ||
) |
Definition at line 1088 of file SBFrame.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb_private::StackFrame::DumpUsingSettingsFormat(), error(), lldb_private::Target::EvaluateExpression(), lldb::SBError::GetCString(), lldb_private::StreamString::GetData(), lldb_private::TargetProperties::GetDisplayExpressionsInCrashlogs(), lldb::SBValue::GetError(), lldb::SBExpressionOptions::GetFetchDynamicValue(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::GetLog(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb::SBValue::GetSummary(), lldb_private::ExecutionContext::GetTargetPtr(), lldb::SBValue::GetValue(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, lldb::SBExpressionOptions::ref(), lldb::SBValue::SetSP(), lldb::SBError::Success(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBValue SBFrame::EvaluateExpression | ( | const char * | expr, |
lldb::DynamicValueType | use_dynamic | ||
) |
Definition at line 1043 of file SBFrame.cpp.
References EvaluateExpression(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::StackFrame::GetLanguage(), lldb_private::TargetProperties::GetLanguage(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::SourceLanguage::name, lldb::SBExpressionOptions::SetFetchDynamicValue(), lldb::SBExpressionOptions::SetIgnoreBreakpoints(), lldb::SBExpressionOptions::SetLanguage(), lldb::SBExpressionOptions::SetUnwindOnError(), and lldb_private::SourceLanguage::version.
SBValue SBFrame::EvaluateExpression | ( | const char * | expr, |
lldb::DynamicValueType | use_dynamic, | ||
bool | unwind_on_error | ||
) |
Definition at line 1065 of file SBFrame.cpp.
References EvaluateExpression(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::StackFrame::GetLanguage(), lldb_private::TargetProperties::GetLanguage(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::SourceLanguage::name, lldb::SBExpressionOptions::SetFetchDynamicValue(), lldb::SBExpressionOptions::SetIgnoreBreakpoints(), lldb::SBExpressionOptions::SetLanguage(), lldb::SBExpressionOptions::SetUnwindOnError(), and lldb_private::SourceLanguage::version.
SBValue SBFrame::FindRegister | ( | const char * | name | ) |
Definition at line 920 of file SBFrame.cpp.
References lldb_private::ValueObjectRegister::Create(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::StackFrame::GetRegisterContext(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBValue::SetSP(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
Find variables, register sets, registers, or persistent variables using the frame as the scope.
NB. This function does not look up ivars in the function object pointer. To do that use GetValueForVariablePath.
The version that doesn't supply a 'use_dynamic' value will use the target's default.
Definition at line 545 of file SBFrame.cpp.
References lldb_private::StackFrame::CalculateTarget(), FindValue(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by FindValue().
SBValue SBFrame::FindValue | ( | const char * | name, |
ValueType | value_type, | ||
lldb::DynamicValueType | use_dynamic | ||
) |
Definition at line 562 of file SBFrame.cpp.
References lldb_private::Block::AppendVariables(), lldb_private::VariableList::AppendVariablesIfUnique(), lldb_private::SymbolContext::block, lldb_private::ValueObjectRegister::Create(), lldb_private::ValueObjectRegisterSet::Create(), lldb::eNoDynamicValues, lldb::eValueTypeConstResult, lldb::eValueTypeRegister, lldb::eValueTypeRegisterSet, lldb::eValueTypeVariableArgument, lldb::eValueTypeVariableGlobal, lldb::eValueTypeVariableLocal, lldb::eValueTypeVariableStatic, lldb::eValueTypeVariableThreadLocal, lldb_private::VariableList::FindVariable(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::Target::GetPersistentVariable(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::StackFrame::GetRegisterContext(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::StackFrame::GetValueObjectForFrameVariable(), lldb_private::StackFrame::GetVariableList(), lldb_private::Variable::IsInScope(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::RegisterSet::name, lldb::SBValue::SetSP(), lldb_private::RegisterSet::short_name, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBValue SBFrame::FindVariable | ( | const char * | var_name | ) |
The version that doesn't supply a 'use_dynamic' value will use the target's default.
Definition at line 494 of file SBFrame.cpp.
References lldb_private::StackFrame::CalculateTarget(), FindVariable(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by FindVariable().
SBValue SBFrame::FindVariable | ( | const char * | var_name, |
lldb::DynamicValueType | use_dynamic | ||
) |
Definition at line 511 of file SBFrame.cpp.
References lldb_private::StackFrame::FindVariable(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBValue::SetSP(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBBlock SBFrame::GetBlock | ( | ) | const |
Gets the deepest block that contains the frame PC.
See also GetFrameBlock().
Definition at line 231 of file SBFrame.cpp.
References lldb_private::SymbolContext::block, lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBBlock::SetPtr(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
lldb::addr_t SBFrame::GetCFA | ( | ) | const |
Definition at line 311 of file SBFrame.cpp.
References lldb_private::StackID::GetCallFrameAddress(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::StackFrame::GetStackID(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, and m_opaque_sp.
SBCompileUnit SBFrame::GetCompileUnit | ( | ) | const |
Definition at line 160 of file SBFrame.cpp.
References lldb_private::SymbolContext::comp_unit, lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBCompileUnit::reset(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
bool SBFrame::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 985 of file SBFrame.cpp.
References lldb_private::StackFrame::DumpUsingSettingsFormat(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::Stream::PutCString(), lldb::SBStream::ref(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
Similar to GetDescription() but the format of the description can be configured via the format
parameter.
See https://lldb.llvm.org/use/formatting.html for more information on format strings.
[in] | format | The format to use for generating the description. |
[out] | output | The stream where the description will be written to. |
Definition at line 951 of file SBFrame.cpp.
References lldb_private::StackFrame::DumpUsingFormat(), error(), lldb::SBFormat::GetFormatEntrySP(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), m_opaque_sp, lldb::SBStream::ref(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
const char * SBFrame::GetDisplayFunctionName | ( | ) |
Definition at line 1285 of file SBFrame.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::SymbolContext::block, lldb_private::SymbolContext::function, lldb_private::Block::GetContainingInlinedBlock(), lldb_private::ConstString::GetCString(), lldb_private::InlineFunctionInfo::GetDisplayName(), lldb_private::Function::GetDisplayName(), lldb_private::Symbol::GetDisplayName(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::Block::GetInlinedFunctionInfo(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::SymbolContext::symbol, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
addr_t SBFrame::GetFP | ( | ) | const |
Definition at line 393 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBBlock SBFrame::GetFrameBlock | ( | ) | const |
Gets the lexical block that defines the stack frame.
Another way to think of this is it will return the block that contains all of the variables for a stack frame. Inlined functions are represented as SBBlock objects that have inlined function information: the name of the inlined function, where it was called from. The block that is returned will be the first block at or above the block for the PC (SBFrame::GetBlock()) that defines the scope of the frame. When a function contains no inlined functions, this will be the top most lexical block that defines the function. When a function has inlined functions and the PC is currently in one of those inlined functions, this method will return the inlined block that defines this frame. If the PC isn't currently in an inlined function, the lexical block that defines the function is returned.
Definition at line 252 of file SBFrame.cpp.
References lldb_private::StackFrame::GetFrameBlock(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBBlock::SetPtr(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
uint32_t SBFrame::GetFrameID | ( | ) | const |
Definition at line 296 of file SBFrame.cpp.
References lldb_private::StackFrame::GetFrameIndex(), lldb_private::ExecutionContext::GetFramePtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, and UINT32_MAX.
|
protected |
Definition at line 85 of file SBFrame.cpp.
References m_opaque_sp.
Referenced by lldb::SBInstruction::EmulateWithFrame(), lldb::SBBlock::GetVariables(), IsEqual(), lldb::SBThread::ReturnFromFrame(), lldb::SBExecutionContext::SBExecutionContext(), lldb::SBThread::StepOutOfFrame(), and lldb::SBThread::StepOverUntil().
SBFunction SBFrame::GetFunction | ( | ) | const |
Definition at line 184 of file SBFrame.cpp.
References lldb_private::SymbolContext::function, lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBFunction::reset(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
const char * SBFrame::GetFunctionName | ( | ) |
Get the appropriate function name for this frame.
Inlined functions in LLDB are represented by Blocks that have inlined function information, so just looking at the SBFunction or SBSymbol for a frame isn't enough. This function will return the appropriate function, symbol or inlined function name for the frame.
This function returns:
See also IsInlined().
Definition at line 1216 of file SBFrame.cpp.
References GetFunctionName(), and LLDB_INSTRUMENT_VA.
Referenced by GetFunctionName().
const char * SBFrame::GetFunctionName | ( | ) | const |
Definition at line 1243 of file SBFrame.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::SymbolContext::block, lldb_private::SymbolContext::function, lldb_private::Block::GetContainingInlinedBlock(), lldb_private::ConstString::GetCString(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::Block::GetInlinedFunctionInfo(), lldb_private::InlineFunctionInfo::GetName(), lldb_private::Function::GetName(), lldb_private::Symbol::GetName(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::SymbolContext::symbol, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBLineEntry SBFrame::GetLineEntry | ( | ) | const |
Definition at line 273 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::SymbolContext::line_entry, LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBLineEntry::SetLineEntry(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBModule SBFrame::GetModule | ( | ) | const |
Definition at line 135 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::SymbolContext::module_sp, lldb::SBModule::SetSP(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
addr_t SBFrame::GetPC | ( | ) | const |
Definition at line 323 of file SBFrame.cpp.
References lldb_private::StackFrame::GetFrameCodeAddress(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::Address::GetOpcodeLoadAddress(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBAddress SBFrame::GetPCAddress | ( | ) | const |
Definition at line 416 of file SBFrame.cpp.
References lldb_private::StackFrame::GetFrameCodeAddress(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBAddress::SetAddress(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBValueList SBFrame::GetRegisters | ( | ) |
Definition at line 890 of file SBFrame.cpp.
References lldb::SBValueList::Append(), lldb_private::ValueObjectRegisterSet::Create(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::StackFrame::GetRegisterContext(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
addr_t SBFrame::GetSP | ( | ) | const |
Definition at line 370 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBSymbol SBFrame::GetSymbol | ( | ) | const |
Definition at line 208 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBSymbol::reset(), lldb_private::SymbolContext::symbol, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBSymbolContext SBFrame::GetSymbolContext | ( | uint32_t | resolve_scope | ) | const |
Definition at line 115 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
SBThread SBFrame::GetThread | ( | ) | const |
Definition at line 697 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetThreadSP(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by lldb::SBThread::StepOutOfFrame().
lldb::SBValue SBFrame::GetValueForVariablePath | ( | const char * | var_expr_cstr, |
DynamicValueType | use_dynamic | ||
) |
Definition at line 460 of file SBFrame.cpp.
References lldb_private::StackFrame::eExpressionPathOptionCheckPtrVsMember, lldb_private::StackFrame::eExpressionPathOptionsAllowDirectIVarAccess, lldb::eNoDynamicValues, error(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::StackFrame::GetValueForVariableExpressionPath(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBValue::SetSP(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
Referenced by GetValueForVariablePath().
lldb::SBValue SBFrame::GetValueForVariablePath | ( | const char * | var_path | ) |
The version that doesn't supply a 'use_dynamic' value will use the target's default.
Definition at line 443 of file SBFrame.cpp.
References lldb_private::StackFrame::CalculateTarget(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetTargetPtr(), GetValueForVariablePath(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBValueList SBFrame::GetVariables | ( | bool | arguments, |
bool | locals, | ||
bool | statics, | ||
bool | in_scope_only | ||
) |
The version that doesn't supply a 'use_dynamic' value will use the target's default.
Definition at line 728 of file SBFrame.cpp.
References lldb_private::StackFrame::CalculateTarget(), lldb_private::TargetProperties::GetDisplayRuntimeSupportValues(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetTargetPtr(), GetVariables(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBVariablesOptions::SetIncludeArguments(), lldb::SBVariablesOptions::SetIncludeLocals(), lldb::SBVariablesOptions::SetIncludeRuntimeSupportValues(), lldb::SBVariablesOptions::SetIncludeStatics(), lldb::SBVariablesOptions::SetInScopeOnly(), and lldb::SBVariablesOptions::SetUseDynamic().
Referenced by GetVariables().
lldb::SBValueList SBFrame::GetVariables | ( | bool | arguments, |
bool | locals, | ||
bool | statics, | ||
bool | in_scope_only, | ||
lldb::DynamicValueType | use_dynamic | ||
) |
Definition at line 757 of file SBFrame.cpp.
References lldb_private::TargetProperties::GetDisplayRuntimeSupportValues(), lldb_private::ExecutionContext::GetTargetPtr(), GetVariables(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBVariablesOptions::SetIncludeArguments(), lldb::SBVariablesOptions::SetIncludeLocals(), lldb::SBVariablesOptions::SetIncludeRuntimeSupportValues(), lldb::SBVariablesOptions::SetIncludeStatics(), lldb::SBVariablesOptions::SetInScopeOnly(), and lldb::SBVariablesOptions::SetUseDynamic().
SBValueList SBFrame::GetVariables | ( | const lldb::SBVariablesOptions & | options | ) |
Definition at line 779 of file SBFrame.cpp.
References lldb::SBValueList::Append(), lldb::eNoDynamicValues, lldb::eValueTypeVariableArgument, lldb::eValueTypeVariableGlobal, lldb::eValueTypeVariableLocal, lldb::eValueTypeVariableStatic, lldb::eValueTypeVariableThreadLocal, lldb_private::Status::Fail(), lldb_private::Target::GetDebugger(), lldb_private::ExecutionContext::GetFramePtr(), lldb::SBVariablesOptions::GetIncludeArguments(), lldb::SBVariablesOptions::GetIncludeLocals(), lldb::SBVariablesOptions::GetIncludeRecognizedArguments(), lldb::SBVariablesOptions::GetIncludeRuntimeSupportValues(), lldb::SBVariablesOptions::GetIncludeStatics(), lldb::SBVariablesOptions::GetInScopeOnly(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::StackFrame::GetRecognizedFrame(), lldb_private::Process::GetRunLock(), lldb_private::VariableList::GetSize(), lldb_private::Process::GetTarget(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ExecutionContext::GetTargetSP(), lldb::SBVariablesOptions::GetUseDynamic(), lldb_private::StackFrame::GetValueObjectForFrameVariable(), lldb_private::StackFrame::GetVariableList(), INTERRUPT_REQUESTED, LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBValueList::SetError(), lldb::SBValue::SetSP(), and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
lldb::LanguageType SBFrame::GuessLanguage | ( | ) | const |
Definition at line 1222 of file SBFrame.cpp.
References lldb_private::SourceLanguage::AsLanguageType(), lldb::eLanguageTypeUnknown, lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::StackFrame::GuessLanguage(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
bool SBFrame::IsArtificial | ( | ) |
Definition at line 1186 of file SBFrame.cpp.
References IsArtificial(), and LLDB_INSTRUMENT_VA.
Referenced by IsArtificial().
bool SBFrame::IsArtificial | ( | ) | const |
Definition at line 1192 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBFrame::IsEqual | ( | const lldb::SBFrame & | that | ) | const |
Definition at line 677 of file SBFrame.cpp.
References GetFrameSP(), and LLDB_INSTRUMENT_VA.
Referenced by operator!=(), and operator==().
bool SBFrame::IsHidden | ( | ) | const |
Return whether a frame recognizer decided this frame should not be displayes in backtraces etc.
Definition at line 1204 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBFrame::IsInlined | ( | ) |
Return true if this frame represents an inlined function.
See also GetFunctionName().
Definition at line 1156 of file SBFrame.cpp.
References IsInlined(), and LLDB_INSTRUMENT_VA.
Referenced by IsInlined().
bool SBFrame::IsInlined | ( | ) | const |
Definition at line 1162 of file SBFrame.cpp.
References lldb_private::SymbolContext::block, lldb_private::Block::GetContainingInlinedBlock(), lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::StackFrame::GetSymbolContext(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
bool SBFrame::IsValid | ( | ) | const |
Definition at line 93 of file SBFrame.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb::SBThread::StepOutOfFrame().
|
explicit |
Definition at line 97 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
bool SBFrame::operator!= | ( | const lldb::SBFrame & | rhs | ) | const |
Definition at line 691 of file SBFrame.cpp.
References IsEqual(), and LLDB_INSTRUMENT_VA.
const SBFrame & SBFrame::operator= | ( | const lldb::SBFrame & | rhs | ) |
Definition at line 77 of file SBFrame.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBFrame::operator== | ( | const lldb::SBFrame & | rhs | ) | const |
Definition at line 685 of file SBFrame.cpp.
References IsEqual(), and LLDB_INSTRUMENT_VA.
|
protected |
Definition at line 89 of file SBFrame.cpp.
References m_opaque_sp.
Referenced by lldb::SBValue::GetFrame(), lldb::SBExecutionContext::GetFrame(), lldb::SBThread::GetFrameAtIndex(), lldb::SBThread::GetSelectedFrame(), and lldb::SBThread::SetSelectedFrame().
bool SBFrame::SetPC | ( | lldb::addr_t | new_pc | ) |
Definition at line 347 of file SBFrame.cpp.
References lldb_private::ExecutionContext::GetFramePtr(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Process::GetRunLock(), lldb_private::ExecutionContext::GetTargetPtr(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::ProcessRunLock::ProcessRunLocker::TryLock().
|
friend |
|
friend |
|
friend |
|
protected |
Definition at line 231 of file SBFrame.h.
Referenced by Clear(), Disassemble(), EvaluateExpression(), FindRegister(), FindValue(), FindVariable(), GetBlock(), GetCFA(), GetCompileUnit(), GetDescription(), GetDescriptionWithFormat(), GetDisplayFunctionName(), GetFP(), GetFrameBlock(), GetFrameID(), GetFrameSP(), GetFunction(), GetFunctionName(), GetLineEntry(), GetModule(), GetPC(), GetPCAddress(), GetRegisters(), GetSP(), GetSymbol(), GetSymbolContext(), GetThread(), GetValueForVariablePath(), GetVariables(), GuessLanguage(), IsArtificial(), IsHidden(), IsInlined(), operator=(), SBFrame(), SetFrameSP(), and SetPC().