LLDB
mainline
|
#include <ExecutionContext.h>
Public Member Functions | |
ExecutionContext () | |
Default Constructor. More... | |
ExecutionContext (const ExecutionContext &rhs) | |
ExecutionContext (Target *t, bool fill_current_process_thread_frame=true) | |
ExecutionContext (const lldb::TargetSP &target_sp, bool get_process) | |
ExecutionContext (const lldb::ProcessSP &process_sp) | |
ExecutionContext (const lldb::ThreadSP &thread_sp) | |
ExecutionContext (const lldb::StackFrameSP &frame_sp) | |
ExecutionContext (const lldb::TargetWP &target_wp, bool get_process) | |
ExecutionContext (const lldb::ProcessWP &process_wp) | |
ExecutionContext (const lldb::ThreadWP &thread_wp) | |
ExecutionContext (const lldb::StackFrameWP &frame_wp) | |
ExecutionContext (const ExecutionContextRef &exe_ctx_ref) | |
ExecutionContext (const ExecutionContextRef *exe_ctx_ref, bool thread_and_frame_only_if_stopped=false) | |
ExecutionContext (const ExecutionContextRef &exe_ctx_ref, std::unique_lock< std::recursive_mutex > &locker) | |
ExecutionContext (const ExecutionContextRef *exe_ctx_ref, std::unique_lock< std::recursive_mutex > &locker) | |
ExecutionContext (ExecutionContextScope *exe_scope) | |
ExecutionContext (ExecutionContextScope &exe_scope) | |
ExecutionContext (Process *process, Thread *thread=nullptr, StackFrame *frame=nullptr) | |
Construct with process, thread, and frame index. More... | |
~ExecutionContext () | |
ExecutionContext & | operator= (const ExecutionContext &rhs) |
bool | operator== (const ExecutionContext &rhs) const |
bool | operator!= (const ExecutionContext &rhs) const |
void | Clear () |
Clear the object's state. More... | |
RegisterContext * | GetRegisterContext () const |
ExecutionContextScope * | GetBestExecutionContextScope () const |
uint32_t | GetAddressByteSize () const |
lldb::ByteOrder | GetByteOrder () const |
Target * | GetTargetPtr () const |
Returns a pointer to the target object. More... | |
Process * | GetProcessPtr () const |
Returns a pointer to the process object. More... | |
Thread * | GetThreadPtr () const |
Returns a pointer to the thread object. More... | |
StackFrame * | GetFramePtr () const |
Returns a pointer to the frame object. More... | |
Target & | GetTargetRef () const |
Returns a reference to the target object. More... | |
Process & | GetProcessRef () const |
Returns a reference to the process object. More... | |
Thread & | GetThreadRef () const |
Returns a reference to the thread object. More... | |
StackFrame & | GetFrameRef () const |
Returns a reference to the thread object. More... | |
const lldb::TargetSP & | GetTargetSP () const |
Get accessor to get the target shared pointer. More... | |
const lldb::ProcessSP & | GetProcessSP () const |
Get accessor to get the process shared pointer. More... | |
const lldb::ThreadSP & | GetThreadSP () const |
Get accessor to get the thread shared pointer. More... | |
const lldb::StackFrameSP & | GetFrameSP () const |
Get accessor to get the frame shared pointer. More... | |
void | SetTargetSP (const lldb::TargetSP &target_sp) |
Set accessor to set only the target shared pointer. More... | |
void | SetProcessSP (const lldb::ProcessSP &process_sp) |
Set accessor to set only the process shared pointer. More... | |
void | SetThreadSP (const lldb::ThreadSP &thread_sp) |
Set accessor to set only the thread shared pointer. More... | |
void | SetFrameSP (const lldb::StackFrameSP &frame_sp) |
Set accessor to set only the frame shared pointer. More... | |
void | SetTargetPtr (Target *target) |
Set accessor to set only the target shared pointer from a target pointer. More... | |
void | SetProcessPtr (Process *process) |
Set accessor to set only the process shared pointer from a process pointer. More... | |
void | SetThreadPtr (Thread *thread) |
Set accessor to set only the thread shared pointer from a thread pointer. More... | |
void | SetFramePtr (StackFrame *frame) |
Set accessor to set only the frame shared pointer from a frame pointer. More... | |
void | SetContext (const lldb::TargetSP &target_sp, bool get_process) |
void | SetContext (const lldb::ProcessSP &process_sp) |
void | SetContext (const lldb::ThreadSP &thread_sp) |
void | SetContext (const lldb::StackFrameSP &frame_sp) |
bool | HasTargetScope () const |
Returns true the ExecutionContext object contains a valid target. More... | |
bool | HasProcessScope () const |
Returns true the ExecutionContext object contains a valid target and process. More... | |
bool | HasThreadScope () const |
Returns true the ExecutionContext object contains a valid target, process, and thread. More... | |
bool | HasFrameScope () const |
Returns true the ExecutionContext object contains a valid target, process, thread and frame. More... | |
Protected Attributes | |
lldb::TargetSP | m_target_sp |
The target that owns the process/thread/frame. More... | |
lldb::ProcessSP | m_process_sp |
The process that owns the thread/frame. More... | |
lldb::ThreadSP | m_thread_sp |
The thread that owns the frame. More... | |
lldb::StackFrameSP | m_frame_sp |
The stack frame in thread. More... | |
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
This baton object can be passed into any function that requires a context that specifies a target, process, thread and frame. These objects are designed to be used for short term execution context object storage while a function might be trying to evaluate something that requires a thread or frame. ExecutionContextRef objects can be used to initialize one of these objects to turn the weak execution context object references to the target, process, thread and frame into strong references (shared pointers) so that functions can guarantee that these objects won't go away in the middle of a function.
ExecutionContext objects should be used as short lived objects (typically on the stack) in order to lock down an execution context for local use and for passing down to other functions that also require specific contexts. They should NOT be used for long term storage, for long term storage use ExecutionContextRef objects.
Definition at line 292 of file ExecutionContext.h.
ExecutionContext::ExecutionContext | ( | ) |
Default Constructor.
Definition at line 19 of file ExecutionContext.cpp.
|
default |
ExecutionContext::ExecutionContext | ( | Target * | t, |
bool | fill_current_process_thread_frame = true |
||
) |
Definition at line 78 of file ExecutionContext.cpp.
References lldb_private::Target::GetProcessSP(), m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
ExecutionContext::ExecutionContext | ( | const lldb::TargetSP & | target_sp, |
bool | get_process | ||
) |
Definition at line 24 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::ProcessSP & | process_sp | ) |
Definition at line 31 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::ThreadSP & | thread_sp | ) |
Definition at line 37 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::StackFrameSP & | frame_sp | ) |
Definition at line 43 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::TargetWP & | target_wp, |
bool | get_process | ||
) |
Definition at line 49 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::ProcessWP & | process_wp | ) |
Definition at line 57 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::ThreadWP & | thread_wp | ) |
Definition at line 64 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const lldb::StackFrameWP & | frame_wp | ) |
Definition at line 71 of file ExecutionContext.cpp.
References SetContext().
ExecutionContext::ExecutionContext | ( | const ExecutionContextRef & | exe_ctx_ref | ) |
Definition at line 107 of file ExecutionContext.cpp.
ExecutionContext::ExecutionContext | ( | const ExecutionContextRef * | exe_ctx_ref, |
bool | thread_and_frame_only_if_stopped = false |
||
) |
Definition at line 113 of file ExecutionContext.cpp.
References lldb_private::ExecutionContextRef::GetFrameSP(), lldb_private::ExecutionContextRef::GetProcessSP(), lldb_private::ExecutionContextRef::GetTargetSP(), lldb_private::ExecutionContextRef::GetThreadSP(), m_frame_sp, m_process_sp, m_target_sp, m_thread_sp, and lldb_private::StateIsStoppedState().
ExecutionContext::ExecutionContext | ( | const ExecutionContextRef & | exe_ctx_ref, |
std::unique_lock< std::recursive_mutex > & | locker | ||
) |
Definition at line 142 of file ExecutionContext.cpp.
References lldb_private::ExecutionContextRef::GetFrameSP(), lldb_private::ExecutionContextRef::GetProcessSP(), lldb_private::ExecutionContextRef::GetThreadSP(), m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
ExecutionContext::ExecutionContext | ( | const ExecutionContextRef * | exe_ctx_ref, |
std::unique_lock< std::recursive_mutex > & | locker | ||
) |
Definition at line 127 of file ExecutionContext.cpp.
References lldb_private::ExecutionContextRef::GetFrameSP(), lldb_private::ExecutionContextRef::GetProcessSP(), lldb_private::ExecutionContextRef::GetTargetSP(), lldb_private::ExecutionContextRef::GetThreadSP(), m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
ExecutionContext::ExecutionContext | ( | ExecutionContextScope * | exe_scope | ) |
Definition at line 155 of file ExecutionContext.cpp.
References lldb_private::ExecutionContextScope::CalculateExecutionContext().
ExecutionContext::ExecutionContext | ( | ExecutionContextScope & | exe_scope | ) |
Definition at line 161 of file ExecutionContext.cpp.
References lldb_private::ExecutionContextScope::CalculateExecutionContext().
ExecutionContext::ExecutionContext | ( | Process * | process, |
Thread * | thread = nullptr , |
||
StackFrame * | frame = nullptr |
||
) |
Construct with process, thread, and frame index.
Initialize with process p, thread t, and frame index f.
[in] | process | The process for this execution context. |
[in] | thread | The thread for this execution context. |
[in] | frame | The frame index for this execution context. |
Definition at line 94 of file ExecutionContext.cpp.
References lldb_private::Process::GetTarget(), m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
|
default |
void ExecutionContext::Clear | ( | ) |
Clear the object's state.
Sets the process and thread to nullptr, and the frame index to an invalid value.
Definition at line 165 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
Referenced by lldb_private::Target::CalculateExecutionContext(), and lldb_private::CommandObject::Cleanup().
uint32_t ExecutionContext::GetAddressByteSize | ( | ) | const |
Definition at line 174 of file ExecutionContext.cpp.
References m_process_sp, and m_target_sp.
Referenced by lldb_private::ValueObjectConstResultImpl::AddressOf(), lldb_private::ValueObject::CreateValueObjectFromAddress(), and lldb_private::IRExecutionUnit::GetAddressByteSize().
ExecutionContextScope * ExecutionContext::GetBestExecutionContextScope | ( | ) | const |
Definition at line 214 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
Referenced by lldb_private::ClangExpressionDeclMap::AddPersistentVariable(), lldb_private::ValueObjectConstResultImpl::AddressOf(), lldb_private::ValueObject::AddressOf(), lldb_private::Watchpoint::CaptureWatchedValue(), lldb_private::ValueObject::CastPointerType(), lldb_private::ValueObject::CreateConstantValue(), lldb_private::ValueObject::CreateValueObjectFromAddress(), lldb_private::ValueObject::CreateValueObjectFromData(), lldb_private::formatters::CXXFunctionPointerSummaryProvider(), lldb_private::CommandObjectDWIMPrint::DoExecute(), lldb_private::StackFrame::Dump(), DumpAddressAndContent(), CommandObjectTargetVariable::DumpGlobalVariableList(), CommandObjectRegisterRead::DumpRegister(), lldb_private::Type::DumpValue(), lldb_private::UserExpression::Evaluate(), ExtractLibcxxStringInfo(), lldb_private::LLVMUserExpression::FinalizeJITExecution(), lldb_private::FormatEntity::Format(), lldb_private::TypeFormatImpl_Format::FormatObject(), lldb_private::TypeFormatImpl_EnumType::FormatObject(), lldb_private::ValueObjectVariable::GetByteSize(), lldb_private::ValueObjectMemory::GetByteSize(), lldb_private::ValueObjectConstResult::GetByteSize(), lldb_private::TypeSystemClang::GetChildCompilerTypeAtIndex(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::ValueObject::GetPointeeData(), lldb_private::FormatManager::GetPossibleMatches(), lldb_private::ValueObject::GetSyntheticBase(), lldb_private::ValueObject::GetSyntheticChildAtOffset(), lldb_private::Value::GetValueAsData(), lldb_private::Value::GetValueByteSize(), lldb_private::ClangUtilityFunction::Install(), LoadValueFromConsecutiveGPRRegisters(), LookupAddressInModule(), LookupFileAndLineInModule(), LookupFunctionInModule(), LookupSymbolInModule(), lldb_private::Type::ReadFromMemory(), lldb_private::Value::ResolveValue(), and lldb_private::ValueObjectChild::UpdateValue().
lldb::ByteOrder ExecutionContext::GetByteOrder | ( | ) | const |
Definition at line 182 of file ExecutionContext.cpp.
References lldb_private::endian::InlHostByteOrder(), m_process_sp, and m_target_sp.
Referenced by lldb_private::ValueObject::CreateValueObjectFromAddress(), and lldb_private::IRExecutionUnit::GetByteOrder().
|
inline |
Returns a pointer to the frame object.
The returned pointer might be nullptr. Calling HasFrameScope(), can help to pre-validate this pointer so that this accessor can freely be used without having to check for nullptr each time.
Definition at line 408 of file ExecutionContext.h.
References m_frame_sp.
Referenced by lldb_private::Variable::AutoComplete(), lldb_private::CommandObject::CheckRequirements(), lldb::SBFrame::Disassemble(), lldb_private::CommandObjectDWIMPrint::DoExecute(), lldb_private::DWARFExpressionList::Evaluate(), lldb_private::DWARFExpression::Evaluate(), lldb_private::UserExpression::Evaluate(), Evaluate_DW_OP_entry_value(), lldb::SBFrame::EvaluateExpression(), lldb::SBValue::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), lldb_private::Target::StopHook::ExecutionContextPasses(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), lldb_private::FormatEntity::Format(), lldb_private::StringSummaryFormat::FormatObject(), lldb::SBFrame::GetBlock(), lldb::SBFrame::GetCFA(), lldb::SBFrame::GetCompileUnit(), lldb_private::CommandObjectDisassemble::GetCurrentFunctionRanges(), lldb_private::CommandObjectDisassemble::GetCurrentLineRanges(), lldb::SBFrame::GetDescription(), lldb::SBFrame::GetDisplayFunctionName(), lldb::SBFrame::GetFP(), lldb::SBFrame::GetFrameBlock(), lldb::SBFrame::GetFrameID(), lldb::SBFrame::GetFunction(), lldb::SBFrame::GetLineEntry(), lldb::SBFrame::GetModule(), GetModuleConfig(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb::SBFrame::GetPC(), lldb::SBFrame::GetPCAddress(), lldb_private::CommandObjectDisassemble::GetPCRanges(), lldb::SBFrame::GetRegisters(), lldb::SBFrame::GetSP(), lldb::SBFrame::GetSymbol(), lldb::SBFrame::GetSymbolContext(), lldb_private::ClangExpressionSourceCode::GetText(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBFrame::GetVariables(), lldb::SBFrame::GuessLanguage(), lldb_private::ValueObjectVariable::IsInScope(), lldb_private::Thread::JumpToLine(), lldb_private::Disassembler::PrintInstructions(), lldb_private::ClangUserExpression::ScanContext(), lldb::SBFrame::SetPC(), SetupDeclVendor(), lldb_private::OptionArgParser::ToAddress(), lldb_private::ValueObjectRegisterSet::UpdateValue(), lldb_private::ValueObjectRegister::UpdateValue(), and lldb_private::ClangExpressionDeclMap::WillParse().
StackFrame & ExecutionContext::GetFrameRef | ( | ) | const |
Returns a reference to the thread object.
Clients should call HasFrameScope() prior to calling this function to ensure that this ExecutionContext object contains a valid target.
Definition at line 239 of file ExecutionContext.cpp.
References m_frame_sp.
|
inline |
Get accessor to get the frame shared pointer.
The returned shared pointer is not guaranteed to be valid.
Definition at line 469 of file ExecutionContext.h.
References m_frame_sp.
Referenced by lldb_private::ClangUserExpression::AddArguments(), lldb_private::ScriptInterpreterLua::BreakpointCallbackFunction(), lldb_private::ValueObject::CreateValueObjectFromExpression(), lldb_private::ValueObject::EvaluationPoint::EvaluationPoint(), lldb_private::UserExpression::InstallContext(), lldb_private::UserExpression::LockAndCheckContext(), lldb_private::ExecutionContextRef::operator=(), DWARFASTParser::ParseChildArrayInfo(), lldb_private::ClangExpressionParser::PrepareForExecution(), and lldb_private::ScriptInterpreterLua::WatchpointCallbackFunction().
Process * ExecutionContext::GetProcessPtr | ( | ) | const |
Returns a pointer to the process object.
The returned pointer might be nullptr. Calling HasProcessScope(), HasThreadScope(), or HasFrameScope() can help to pre-validate this pointer so that this accessor can freely be used without having to check for nullptr each time.
Definition at line 206 of file ExecutionContext.cpp.
References m_process_sp, and m_target_sp.
Referenced by lldb_private::CommandObjectIterateOverThreads::BucketThread(), lldb_private::ValueObject::CalculateDynamicValue(), lldb_private::RenderScriptRuntime::CaptureScriptInit(), lldb_private::CommandObject::CheckRequirements(), lldb_private::ClangUserExpression::Complete(), lldb_private::formatters::CXXFunctionPointerSummaryProvider(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb::SBFrame::Disassemble(), lldb_private::IRExecutionUnit::DisassembleFunction(), lldb_private::CommandObjectIterateOverThreads::DoExecute(), lldb_private::LLVMUserExpression::DoExecute(), CommandObjectProcessKDPPacketSend::DoExecute(), lldb_private::ValueObjectVariable::DoUpdateChildrenAddressType(), lldb_private::Address::Dump(), CommandObjectRegisterRead::DumpRegister(), lldb_private::TypeSystemClang::DumpSummary(), lldb_private::Thread::DumpUsingSettingsFormat(), lldb_private::DWARFExpression::Evaluate(), lldb_private::UserExpression::Evaluate(), lldb::SBFrame::EvaluateExpression(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::FunctionCaller::FetchFunctionResults(), lldb_private::CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), lldb_private::FormatEntity::Format(), lldb_private::TypeSystemClang::GetBitSize(), lldb::SBFrame::GetBlock(), lldb_private::TypeSystemClang::GetChildCompilerTypeAtIndex(), lldb_private::AppleObjCRuntimeV2::GetClassDescriptor(), lldb_private::ObjCLanguageRuntime::GetClassDescriptor(), lldb::SBFrame::GetCompileUnit(), lldb_private::CommandObjectDisassemble::GetCurrentFunctionRanges(), lldb_private::CommandObjectDisassemble::GetCurrentLineRanges(), lldb_private::CommandObject::GetDefaultThread(), lldb::SBFrame::GetDescription(), lldb::SBFrame::GetDisplayFunctionName(), lldb_private::ItaniumABILanguageRuntime::GetDynamicTypeAndAddress(), lldb_private::ValueObjectConstResult::GetDynamicValue(), lldb::SBThread::GetExtendedBacktraceThread(), lldb::SBFrame::GetFP(), lldb::SBThread::GetFrameAtIndex(), lldb::SBFrame::GetFrameBlock(), lldb_private::RegisterContextUnwind::GetFullUnwindPlanForFrame(), lldb::SBFrame::GetFunction(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBFrame::GetLineEntry(), lldb::SBFrame::GetModule(), lldb::SBThread::GetName(), lldb::SBThread::GetNumFrames(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::ValueObject::GetObjectDescription(), lldb::SBFrame::GetPC(), lldb::SBFrame::GetPCAddress(), lldb_private::CommandObjectDisassemble::GetPCRanges(), lldb_private::ValueObject::GetPointeeData(), ProcessOptionValueProperties::GetPropertyAtIndex(), lldb::SBThread::GetQueue(), lldb::SBThread::GetQueueID(), lldb::SBThread::GetQueueName(), lldb::SBFrame::GetRegisters(), ABISysV_mips::GetReturnValueObjectImpl(), ABISysV_mips64::GetReturnValueObjectImpl(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), lldb::SBThread::GetSelectedFrame(), lldb::SBFrame::GetSP(), lldb_private::Thread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReason(), lldb::SBThread::GetStopReasonDataAtIndex(), lldb::SBThread::GetStopReasonDataCount(), lldb::SBThread::GetStopReturnValue(), lldb::SBFrame::GetSymbol(), lldb::SBFrame::GetSymbolContext(), lldb_private::ClangExpressionDeclMap::GetTargetInfo(), lldb_private::Value::GetValueAsData(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBFrame::GetVariables(), GetVBaseBitOffset(), lldb::SBFrame::GuessLanguage(), lldb_private::RenderScriptRuntime::HookCallback(), lldb_private::RegisterContextUnwind::InitializeNonZerothFrame(), lldb_private::RegisterContextUnwind::InitializeZerothFrame(), lldb_private::FunctionCaller::InsertFunction(), lldb_private::ClangDynamicCheckerFunctions::Install(), lldb_private::ClangUtilityFunction::Install(), IRInterpreter::Interpret(), lldb_private::ValueObject::IsPossibleDynamicType(), lldb_private::formatters::LibcxxFunctionSummaryProvider(), DynamicLoaderMacOS::NotifyBreakpointHit(), DynamicLoaderMacOSXDYLD::NotifyBreakpointHit(), lldb::SBFrame::operator bool(), lldb::SBThread::operator bool(), lldb_private::ClangUserExpression::Parse(), lldb_private::StopInfoBreakpoint::PerformAction(), lldb_private::ClangExpressionParser::PrepareForExecution(), lldb::SBBreakpointCallbackBaton::PrivateBreakpointHitCallback(), lldb_private::RegisterContextUnwind::PropagateTrapHandlerFlagFromUnwindPlan(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadAllRegisterValues(), lldb_private::RegisterContextUnwind::ReadFrameAddress(), lldb_private::Type::ReadFromMemory(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadRegisterBytes(), lldb_private::AppleObjCTrampolineHandler::AppleObjCVTables::RefreshTrampolines(), lldb::SBThread::Resume(), lldb::SBThread::ResumeNewPlan(), lldb_private::Process::RunThreadPlan(), lldb_private::RegisterContextUnwind::SavedLocationForRegister(), lldb_private::ValueObject::SetData(), lldb::SBFrame::SetPC(), lldb::SBThread::SetSelectedFrame(), lldb_private::ValueObject::SetValueFromCString(), lldb::SBThread::Suspend(), lldb_private::ValueObject::EvaluationPoint::SyncWithProcessState(), lldb_private::CommandCompletions::ThreadIndexes(), lldb_private::OptionArgParser::ToAddress(), lldb_private::ValueObjectMemory::UpdateValue(), lldb_private::ValueObjectVariable::UpdateValue(), lldb_private::ValueObjectDynamicValue::UpdateValue(), lldb_private::ValueObjectRegister::UpdateValue(), lldb_private::ClangExpressionDeclMap::WillParse(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteAllRegisterValues(), lldb_private::FunctionCaller::WriteFunctionArguments(), lldb_private::FunctionCaller::WriteFunctionWrapper(), and lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteRegisterBytes().
Process & ExecutionContext::GetProcessRef | ( | ) | const |
Returns a reference to the process object.
Clients should call HasProcessScope(), HasThreadScope(), or HasFrameScope() prior to calling this function to ensure that this ExecutionContext object contains a valid target.
Definition at line 229 of file ExecutionContext.cpp.
References m_process_sp.
Referenced by lldb_private::FunctionCaller::DeallocateFunctionResults(), lldb_private::LLVMUserExpression::DoExecute(), lldb_private::CommandObjectMultipleThreads::DoExecute(), lldb_private::FunctionCaller::ExecuteFunction(), ABISysV_arm::GetArgumentValues(), ABIMacOSX_arm::GetArgumentValues(), ABISysV_arm64::GetArgumentValues(), ABIMacOSX_arm64::GetArgumentValues(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), GetSingleThreadFromArgs(), IRInterpreter::Interpret(), and LoadValueFromConsecutiveGPRRegisters().
|
inline |
Get accessor to get the process shared pointer.
The returned shared pointer is not guaranteed to be valid.
Definition at line 459 of file ExecutionContext.h.
References m_process_sp.
Referenced by lldb_private::CommandObjectTraceProxy::DoGetProxyCommandObject(), lldb_private::ValueObject::EvaluationPoint::EvaluationPoint(), lldb::SBThread::GetProcess(), lldb::SBThread::GetStopReasonExtendedBacktraces(), lldb_private::UserExpression::InstallContext(), lldb_private::REPL::IOHandlerInputComplete(), lldb_private::UserExpression::LockAndCheckContext(), lldb_private::PlatformWindows::MakeLoadImageUtilityFunction(), PlatformPOSIX::MakeLoadImageUtilityFunction(), lldb_private::ExecutionContextRef::operator=(), lldb_private::CommandObjectExpression::CommandOptions::OptionParsingStarting(), ThreadStepScopeOptionGroup::OptionParsingStarting(), lldb_private::StopInfoWatchpoint::PerformAction(), lldb_private::ClangExpressionParser::PrepareForExecution(), and lldb_private::StopInfoWatchpoint::ShouldStopSynchronous().
RegisterContext * ExecutionContext::GetRegisterContext | ( | ) | const |
Definition at line 190 of file ExecutionContext.cpp.
References m_frame_sp, and m_thread_sp.
Referenced by lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), Evaluate_DW_OP_entry_value(), lldb_private::IndirectCallEdge::GetCallee(), lldb_private::Thread::JumpToLine(), lldb_private::CommandCompletions::Registers(), lldb_private::ValueObjectVariable::SetData(), and lldb_private::ValueObjectVariable::SetValueFromCString().
Target * ExecutionContext::GetTargetPtr | ( | ) | const |
Returns a pointer to the target object.
The returned pointer might be nullptr. Calling HasTargetScope(), HasProcessScope(), HasThreadScope(), or HasFrameScope() can help to pre- validate this pointer so that this accessor can freely be used without having to check for nullptr each time.
Definition at line 198 of file ExecutionContext.cpp.
References m_process_sp, and m_target_sp.
Referenced by lldb_private::ClangExpressionDeclMap::AddPersistentVariable(), lldb_private::OptionValueUUID::AutoComplete(), lldb_private::ScriptInterpreterLua::BreakpointCallbackFunction(), lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), InstructionLLVMC::CalculateMnemonicOperandsAndComment(), CalculateSymbolInfo(), lldb_private::CommandObject::CheckRequirements(), lldb_private::ClangUserExpression::Complete(), lldb_private::StopInfoMachException::CreateStopReasonWithMachException(), lldb_private::formatters::CXXFunctionPointerSummaryProvider(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb::SBFrame::Disassemble(), lldb_private::StackFrame::Disassemble(), lldb_private::Disassembler::Disassemble(), lldb_private::IRExecutionUnit::DisassembleFunction(), lldb_private::CommandObjectDWIMPrint::DoExecute(), lldb_private::Address::Dump(), lldb_private::StackFrame::Dump(), DumpCompileUnitLineTable(), DumpModuleSections(), DumpModuleSymtab(), OutputWriterCLI::DumpSegmentContext(), lldb_private::StackFrame::DumpUsingSettingsFormat(), lldb_private::Type::DumpValueInMemory(), lldb::SBInstruction::EmulateWithFrame(), lldb_private::DWARFExpressionList::Evaluate(), lldb_private::DWARFExpression::Evaluate(), lldb_private::UserExpression::Evaluate(), lldb::SBFrame::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), lldb_private::UserExpression::Execute(), lldb_private::FunctionCaller::ExecuteFunction(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), UnwindAssembly_x86::FirstNonPrologueInsn(), lldb_private::FormatEntity::Format(), lldb_private::IRExecutionUnit::GetArchitecture(), lldb::SBFrame::GetBlock(), lldb_private::IndirectCallEdge::GetCallee(), lldb_private::ValueObjectRegister::GetCompilerTypeImpl(), lldb::SBFrame::GetCompileUnit(), lldb_private::CommandObject::GetDefaultThread(), lldb_private::StopInfoMachException::GetDescription(), lldb::SBFrame::GetDescription(), lldb::SBFrame::GetDisplayFunctionName(), lldb::SBFrame::GetFP(), lldb_private::StackFrame::GetFrameBaseValue(), lldb::SBFrame::GetFrameBlock(), lldb_private::RegisterContextUnwind::GetFullUnwindPlanForFrame(), lldb::SBFrame::GetFunction(), lldb_private::IRExecutionUnit::GetJITModule(), lldb::SBFrame::GetLineEntry(), lldb::SBFrame::GetModule(), GetModuleConfig(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb::SBFrame::GetPC(), lldb::SBFrame::GetPCAddress(), lldb_private::ValueObject::GetPointeeData(), TargetOptionValueProperties::GetPropertyAtIndex(), lldb::SBFrame::GetRegisters(), ABISysV_x86_64::GetReturnValueObjectImpl(), ABIWindows_x86_64::GetReturnValueObjectImpl(), ABISysV_mips64::GetReturnValueObjectImpl(), ABISysV_ppc::GetReturnValueObjectImpl(), ABISysV_mips::GetReturnValueObjectImpl(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), lldb::SBFrame::GetSP(), lldb_private::StackFrame::GetStatus(), lldb_private::Thread::GetStatus(), lldb::SBFrame::GetSymbol(), lldb::SBFrame::GetSymbolContext(), lldb_private::ClangExpressionDeclMap::ParserVars::GetTarget(), lldb_private::Target::GetTargetFromContexts(), lldb_private::ClangExpressionDeclMap::GetTargetInfo(), lldb_private::ClangExpressionSourceCode::GetText(), lldb_private::Value::GetValueAsData(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBFrame::GetVariables(), lldb::SBFrame::GuessLanguage(), lldb_private::Target::StopHookCommandLine::HandleStop(), lldb_private::Target::StopHookScripted::HandleStop(), lldb_private::RegisterContextUnwind::InitializeNonZerothFrame(), lldb_private::RegisterContextUnwind::InitializeZerothFrame(), lldb_private::ClangUtilityFunction::Install(), lldb_private::Thread::JumpToLine(), lldb_private::RenderScriptRuntime::KernelBreakpointHit(), LookupAddressInModule(), lldb_private::CommandCompletions::ModuleUUIDs(), lldb::SBFrame::operator bool(), lldb::SBThread::operator bool(), lldb_private::CommandObjectDisassemble::CommandOptions::OptionParsingStarting(), lldb_private::ClangUserExpression::Parse(), ReadAddress(), lldb_private::ValueObject::ReadPointedString(), ResolveLoadAddress(), lldb_private::RegisterContextUnwind::SavedLocationForRegister(), lldb_private::ClangUserExpression::ScanContext(), lldb::SBFrame::SetPC(), lldb_private::ClangUserExpression::SetupPersistentState(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop(), lldb::SBThread::StepOverUntil(), DisassemblerLLVMC::SymbolLookup(), lldb_private::ValueObject::EvaluationPoint::SyncWithProcessState(), lldb_private::OptionArgParser::ToAddress(), lldb_private::ValueObjectMemory::UpdateValue(), lldb_private::ValueObjectVariable::UpdateValue(), lldb_private::ValueObjectDynamicValue::UpdateValue(), lldb_private::ScriptInterpreterLua::WatchpointCallbackFunction(), lldb_private::CommandCompletions::WatchPointIDs(), lldb_private::ClangExpressionDeclMap::WillParse(), and lldb_private::FunctionCaller::WriteFunctionArguments().
Target & ExecutionContext::GetTargetRef | ( | ) | const |
Returns a reference to the target object.
Clients should call HasTargetScope(), HasProcessScope(), HasThreadScope(), or HasFrameScope() prior to calling this function to ensure that this ExecutionContext object contains a valid target.
Definition at line 224 of file ExecutionContext.cpp.
References m_target_sp.
Referenced by lldb_private::ClangUserExpression::AddArguments(), CalculateDisass(), lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::ComputeHelper(), lldb_private::Disassembler::Disassemble(), lldb_private::InstructionList::Dump(), CommandObjectRegisterRead::DumpRegister(), lldb_private::Thread::DumpUsingSettingsFormat(), lldb_private::DWARFExpression::Evaluate(), Evaluate_DW_OP_entry_value(), lldb_private::Debugger::FormatDisassemblerAddress(), lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::GetClassInfoUtilityFunctionImpl(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::GetClassInfoUtilityFunctionImpl(), lldb_private::RegisterContextUnwind::GetFullUnwindPlanForFrame(), lldb_private::Symbol::GetInstructions(), lldb_private::Function::GetInstructions(), lldb_private::Value::GetValueAsData(), lldb_private::ClangDynamicCheckerFunctions::Install(), lldb_private::StopInfoBreakpoint::PerformAction(), lldb_private::StopInfoWatchpoint::PerformAction(), lldb_private::Disassembler::PrintInstructions(), lldb::SBBreakpointCallbackBaton::PrivateBreakpointHitCallback(), lldb_private::AppleObjCTrampolineHandler::SetupDispatchFunction(), lldb_private::AppleGetItemInfoHandler::SetupGetItemInfoFunction(), lldb_private::AppleGetPendingItemsHandler::SetupGetPendingItemsFunction(), lldb_private::AppleGetQueuesHandler::SetupGetQueuesFunction(), and lldb_private::AppleGetThreadItemInfoHandler::SetupGetThreadItemInfoFunction().
|
inline |
Get accessor to get the target shared pointer.
The returned shared pointer is not guaranteed to be valid.
Definition at line 454 of file ExecutionContext.h.
References m_target_sp.
Referenced by lldb_private::ValueObject::CreateValueObjectFromExpression(), lldb_private::Disassembler::ElideMixedSourceAndDisassemblyLine(), lldb_private::ValueObject::EvaluationPoint::EvaluationPoint(), lldb::SBFrame::GetVariables(), lldb_private::Thread::JumpToLine(), lldb_private::UserExpression::LockAndCheckContext(), lldb_private::ExecutionContextRef::operator=(), lldb_private::OptionGroupValueObjectDisplay::OptionParsingStarting(), ThreadStepScopeOptionGroup::OptionParsingStarting(), lldb_private::Options::Parse(), lldb_private::OptionGroupFormat::ParserGDBFormatLetter(), lldb_private::ClangExpressionParser::PrepareForExecution(), lldb_private::Disassembler::PrintInstructions(), lldb_private::ClangUserExpression::ClangUserExpressionHelper::ResetDeclMap(), lldb_private::ClangUtilityFunction::ClangUtilityFunctionHelper::ResetDeclMap(), lldb_private::CommandObjectDisassemble::CommandOptions::SetOptionValue(), lldb_private::CommandOptionsProcessLaunch::SetOptionValue(), CommandObjectPlatformProcessList::CommandOptions::SetOptionValue(), lldb_private::Debugger::SetPropertyValue(), lldb_private::CommandCompletions::StopHookIDs(), and lldb_private::ClangExpressionDeclMap::WillParse().
|
inline |
Returns a pointer to the thread object.
The returned pointer might be nullptr. Calling HasThreadScope() or HasFrameScope() can help to pre-validate this pointer so that this accessor can freely be used without having to check for nullptr each time.
Definition at line 399 of file ExecutionContext.h.
References m_thread_sp.
Referenced by lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb_private::CommandObjectIterateOverThreads::DoExecute(), lldb_private::DWARFExpression::Evaluate(), Evaluate_DW_OP_entry_value(), lldb_private::FormatEntity::Format(), lldb_private::CommandObject::GetDefaultThread(), lldb::SBThread::GetDescription(), lldb::SBThread::GetFrameAtIndex(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBThread::GetName(), lldb::SBThread::GetNumFrames(), lldb_private::AppleObjCRuntime::GetObjectDescription(), ThreadOptionValueProperties::GetPropertyAtIndex(), lldb::SBThread::GetQueue(), lldb::SBThread::GetQueueID(), lldb::SBThread::GetQueueName(), lldb::SBThread::GetSelectedFrame(), lldb::SBThread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReason(), lldb::SBThread::GetStopReasonDataAtIndex(), lldb::SBThread::GetStopReasonDataCount(), lldb::SBThread::GetStopReasonExtendedBacktraces(), lldb::SBThread::GetStopReasonExtendedInfoAsJSON(), lldb::SBThread::GetStopReturnValue(), lldb_private::FunctionCaller::GetThreadPlanToCallFunction(), IRInterpreter::Interpret(), lldb_private::REPL::IOHandlerInputComplete(), lldb::SBThread::IsStopped(), lldb::SBThread::IsSuspended(), lldb::SBThread::JumpToLine(), lldb_private::RenderScriptRuntime::KernelBreakpointHit(), lldb::SBBreakpointCallbackBaton::PrivateBreakpointHitCallback(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadAllRegisterValues(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadRegisterBytes(), lldb::SBThread::Resume(), lldb::SBThread::ResumeNewPlan(), lldb::SBThread::ReturnFromFrame(), lldb_private::Process::RunThreadPlan(), lldb::SBThread::RunToAddress(), lldb::SBThread::SetSelectedFrame(), lldb::SBThread::StepInstruction(), lldb::SBThread::StepInto(), lldb::SBThread::StepOut(), lldb::SBThread::StepOutOfFrame(), lldb::SBThread::StepOver(), lldb::SBThread::StepOverUntil(), lldb::SBThread::StepUsingScriptedThreadPlan(), lldb::SBThread::Suspend(), lldb::SBThread::UnwindInnermostExpression(), lldb_private::ClangExpressionDeclMap::WillParse(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteAllRegisterValues(), and lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteRegisterBytes().
Thread & ExecutionContext::GetThreadRef | ( | ) | const |
Returns a reference to the thread object.
Clients should call HasThreadScope(), or HasFrameScope() prior to calling this function to ensure that this ExecutionContext object contains a valid target.
Definition at line 234 of file ExecutionContext.cpp.
References m_thread_sp.
Referenced by lldb_private::LLVMUserExpression::DoExecute(), lldb_private::CommandObjectMultipleThreads::DoExecute(), lldb_private::Target::StopHook::ExecutionContextPasses(), IRInterpreter::Interpret(), DynamicLoaderMacOSXDYLD::NotifyBreakpointHit(), DynamicLoaderMacOS::NotifyBreakpointHit(), lldb_private::AppleObjCTrampolineHandler::AppleObjCVTables::RefreshTrampolines(), and lldb_private::ClangExpressionParser::RunStaticInitializers().
|
inline |
Get accessor to get the thread shared pointer.
The returned shared pointer is not guaranteed to be valid.
Definition at line 464 of file ExecutionContext.h.
References m_thread_sp.
Referenced by lldb_private::Disassembler::ElideMixedSourceAndDisassemblyLine(), lldb_private::UserExpression::Evaluate(), lldb_private::ValueObject::EvaluationPoint::EvaluationPoint(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::CommandCompletions::FrameIndexes(), lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::GetClassInfoUtilityFunctionImpl(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::GetClassInfoUtilityFunctionImpl(), lldb::SBThread::GetExtendedBacktraceThread(), GetSingleThreadFromArgs(), lldb::SBFrame::GetThread(), lldb_private::FunctionCaller::InsertFunction(), lldb_private::PlatformWindows::MakeLoadImageUtilityFunction(), PlatformPOSIX::MakeLoadImageUtilityFunction(), lldb_private::ExecutionContextRef::operator=(), and lldb_private::BreakpointOptionGroup::SetOptionValue().
bool ExecutionContext::HasFrameScope | ( | ) | const |
Returns true the ExecutionContext object contains a valid target, process, thread and frame.
This function can be called after initializing an ExecutionContext object, and if it returns true, calls to GetTargetPtr(), GetTargetRef(), GetProcessPtr(), GetProcessRef(), GetThreadPtr(), GetThreadRef(), GetFramePtr(), and GetFrameRef() do not need to be checked for validity.
Definition at line 391 of file ExecutionContext.cpp.
References HasThreadScope(), and m_frame_sp.
Referenced by lldb_private::CommandObject::CheckRequirements().
bool ExecutionContext::HasProcessScope | ( | ) | const |
Returns true the ExecutionContext object contains a valid target and process.
This function can be called after initializing an ExecutionContext object, and if it returns true, calls to GetTargetPtr() and GetTargetRef(), GetProcessPtr(), and GetProcessRef(), do not need to be checked for validity.
Definition at line 383 of file ExecutionContext.cpp.
References HasTargetScope(), and m_process_sp.
Referenced by lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb_private::CommandCompletions::FrameIndexes(), lldb_private::AppleObjCRuntime::GetObjectDescription(), HasThreadScope(), and lldb_private::CommandCompletions::ThreadIndexes().
bool ExecutionContext::HasTargetScope | ( | ) | const |
Returns true the ExecutionContext object contains a valid target.
This function can be called after initializing an ExecutionContext object, and if it returns true, calls to GetTargetPtr() and GetTargetRef() do not need to be checked for validity.
Definition at line 379 of file ExecutionContext.cpp.
References m_target_sp.
Referenced by lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb_private::InstructionList::Dump(), Evaluate_DW_OP_entry_value(), lldb_private::Debugger::FormatDisassemblerAddress(), lldb_private::Symbol::GetInstructions(), lldb_private::Function::GetInstructions(), HasProcessScope(), lldb_private::CommandCompletions::ModuleUUIDs(), lldb_private::Disassembler::PrintInstructions(), and lldb_private::CommandCompletions::WatchPointIDs().
bool ExecutionContext::HasThreadScope | ( | ) | const |
Returns true the ExecutionContext object contains a valid target, process, and thread.
This function can be called after initializing an ExecutionContext object, and if it returns true, calls to GetTargetPtr(), GetTargetRef(), GetProcessPtr(), GetProcessRef(), GetThreadPtr(), and GetThreadRef() do not need to be checked for validity.
Definition at line 387 of file ExecutionContext.cpp.
References HasProcessScope(), and m_thread_sp.
Referenced by lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb_private::LLVMUserExpression::DoExecute(), lldb::SBThread::GetDescription(), lldb::SBThread::GetExtendedBacktraceThread(), lldb::SBThread::GetFrameAtIndex(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBThread::GetName(), lldb::SBThread::GetNumFrames(), lldb::SBThread::GetProcess(), lldb::SBThread::GetQueue(), lldb::SBThread::GetQueueID(), lldb::SBThread::GetQueueName(), lldb::SBThread::GetSelectedFrame(), lldb::SBThread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReason(), lldb::SBThread::GetStopReasonDataAtIndex(), lldb::SBThread::GetStopReasonDataCount(), lldb::SBThread::GetStopReasonExtendedBacktraces(), lldb::SBThread::GetStopReasonExtendedInfoAsJSON(), lldb::SBThread::GetStopReturnValue(), HasFrameScope(), lldb::SBThread::IsStopped(), lldb::SBThread::IsSuspended(), lldb::SBThread::JumpToLine(), lldb::SBThread::Resume(), lldb::SBThread::ReturnFromFrame(), lldb_private::ClangExpressionParser::RunStaticInitializers(), lldb::SBThread::RunToAddress(), lldb::SBThread::SetSelectedFrame(), lldb::SBThread::StepInstruction(), lldb::SBThread::StepInto(), lldb::SBThread::StepOut(), lldb::SBThread::StepOutOfFrame(), lldb::SBThread::StepOver(), lldb::SBThread::StepOverUntil(), lldb::SBThread::StepUsingScriptedThreadPlan(), lldb::SBThread::Suspend(), and lldb::SBThread::UnwindInnermostExpression().
bool ExecutionContext::operator!= | ( | const ExecutionContext & | rhs | ) | const |
Definition at line 375 of file ExecutionContext.cpp.
ExecutionContext & ExecutionContext::operator= | ( | const ExecutionContext & | rhs | ) |
Definition at line 345 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
bool ExecutionContext::operator== | ( | const ExecutionContext & | rhs | ) | const |
Definition at line 355 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
void ExecutionContext::SetContext | ( | const lldb::ProcessSP & | process_sp | ) |
Definition at line 299 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
void ExecutionContext::SetContext | ( | const lldb::StackFrameSP & | frame_sp | ) |
Definition at line 324 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
void ExecutionContext::SetContext | ( | const lldb::TargetSP & | target_sp, |
bool | get_process | ||
) |
Definition at line 288 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
Referenced by lldb_private::StackFrame::CalculateExecutionContext(), lldb_private::Thread::CalculateExecutionContext(), ExecutionContext(), and lldb_private::AppleObjCRuntime::GetObjectDescription().
void ExecutionContext::SetContext | ( | const lldb::ThreadSP & | thread_sp | ) |
Definition at line 309 of file ExecutionContext.cpp.
References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.
void ExecutionContext::SetFramePtr | ( | StackFrame * | frame | ) |
Set accessor to set only the frame shared pointer from a frame pointer.
Definition at line 281 of file ExecutionContext.cpp.
References m_frame_sp.
Referenced by lldb_private::Process::CalculateExecutionContext(), and lldb_private::StackFrameList::SynthesizeTailCallFrames().
void ExecutionContext::SetFrameSP | ( | const lldb::StackFrameSP & | frame_sp | ) |
Set accessor to set only the frame shared pointer.
Definition at line 256 of file ExecutionContext.cpp.
References m_frame_sp.
Referenced by lldb_private::Thread::DumpUsingSettingsFormat(), Evaluate_DW_OP_entry_value(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::REPL::IOHandlerInputComplete(), and lldb_private::Process::RunThreadPlan().
void ExecutionContext::SetProcessPtr | ( | Process * | process | ) |
Set accessor to set only the process shared pointer from a process pointer.
Definition at line 267 of file ExecutionContext.cpp.
References m_process_sp.
Referenced by lldb_private::Process::CalculateExecutionContext().
void ExecutionContext::SetProcessSP | ( | const lldb::ProcessSP & | process_sp | ) |
Set accessor to set only the process shared pointer.
Definition at line 248 of file ExecutionContext.cpp.
References m_process_sp.
Referenced by lldb::SBInstruction::GetComment(), lldb::SBInstruction::GetControlFlowKind(), lldb::SBInstruction::GetMnemonic(), and lldb::SBInstruction::GetOperands().
void ExecutionContext::SetTargetPtr | ( | Target * | target | ) |
Set accessor to set only the target shared pointer from a target pointer.
Definition at line 260 of file ExecutionContext.cpp.
References m_target_sp.
Referenced by lldb_private::Target::CalculateExecutionContext(), and lldb_private::Process::CalculateExecutionContext().
void ExecutionContext::SetTargetSP | ( | const lldb::TargetSP & | target_sp | ) |
Set accessor to set only the target shared pointer.
Definition at line 244 of file ExecutionContext.cpp.
References m_target_sp.
void ExecutionContext::SetThreadPtr | ( | Thread * | thread | ) |
Set accessor to set only the thread shared pointer from a thread pointer.
Definition at line 274 of file ExecutionContext.cpp.
References m_thread_sp.
Referenced by lldb_private::Process::CalculateExecutionContext().
void ExecutionContext::SetThreadSP | ( | const lldb::ThreadSP & | thread_sp | ) |
Set accessor to set only the thread shared pointer.
Definition at line 252 of file ExecutionContext.cpp.
References m_thread_sp.
Referenced by lldb_private::AppleObjCRuntime::GetObjectDescription().
|
protected |
The stack frame in thread.
Definition at line 564 of file ExecutionContext.h.
Referenced by Clear(), ExecutionContext(), GetBestExecutionContextScope(), GetFramePtr(), GetFrameRef(), GetFrameSP(), GetRegisterContext(), HasFrameScope(), operator=(), operator==(), SetContext(), SetFramePtr(), and SetFrameSP().
|
protected |
The process that owns the thread/frame.
Definition at line 562 of file ExecutionContext.h.
Referenced by Clear(), ExecutionContext(), GetAddressByteSize(), GetBestExecutionContextScope(), GetByteOrder(), GetProcessPtr(), GetProcessRef(), GetProcessSP(), GetTargetPtr(), HasProcessScope(), operator=(), operator==(), SetContext(), SetProcessPtr(), and SetProcessSP().
|
protected |
The target that owns the process/thread/frame.
Definition at line 561 of file ExecutionContext.h.
Referenced by Clear(), ExecutionContext(), GetAddressByteSize(), GetBestExecutionContextScope(), GetByteOrder(), GetProcessPtr(), GetTargetPtr(), GetTargetRef(), GetTargetSP(), HasTargetScope(), operator=(), operator==(), SetContext(), SetTargetPtr(), and SetTargetSP().
|
protected |
The thread that owns the frame.
Definition at line 563 of file ExecutionContext.h.
Referenced by Clear(), ExecutionContext(), GetBestExecutionContextScope(), GetRegisterContext(), GetThreadPtr(), GetThreadRef(), GetThreadSP(), HasThreadScope(), operator=(), operator==(), SetContext(), SetThreadPtr(), and SetThreadSP().