LLDB mainline
|
#include <ThreadPlanCallUserExpression.h>
Public Member Functions | |
ThreadPlanCallUserExpression (Thread &thread, Address &function, llvm::ArrayRef< lldb::addr_t > args, const EvaluateExpressionOptions &options, lldb::UserExpressionSP &user_expression_sp) | |
~ThreadPlanCallUserExpression () override | |
void | GetDescription (Stream *s, lldb::DescriptionLevel level) override |
Print a description of this thread to the stream s. | |
void | DidPush () override |
void | DidPop () override |
lldb::StopInfoSP | GetRealStopInfo () override |
bool | MischiefManaged () override |
void | TransferExpressionOwnership () |
lldb::ExpressionVariableSP | GetExpressionVariable () override |
Public Member Functions inherited from lldb_private::ThreadPlanCallFunction | |
ThreadPlanCallFunction (Thread &thread, const Address &function, const CompilerType &return_type, llvm::ArrayRef< lldb::addr_t > args, const EvaluateExpressionOptions &options) | |
ThreadPlanCallFunction (Thread &thread, const Address &function, const EvaluateExpressionOptions &options) | |
~ThreadPlanCallFunction () override | |
void | GetDescription (Stream *s, lldb::DescriptionLevel level) override |
Print a description of this thread to the stream s. | |
bool | ValidatePlan (Stream *error) override |
Returns whether this plan could be successfully created. | |
bool | ShouldStop (Event *event_ptr) override |
Vote | ShouldReportStop (Event *event_ptr) override |
bool | StopOthers () override |
lldb::StateType | GetPlanRunState () override |
void | DidPush () override |
bool | WillStop () override |
bool | MischiefManaged () override |
lldb::ValueObjectSP | GetReturnValueObject () override |
lldb::addr_t | GetFunctionStackPointer () |
void | DidPop () override |
virtual lldb::StopInfoSP | GetRealStopInfo () |
lldb::addr_t | GetStopAddress () |
void | RestoreThreadState () override |
void | ThreadDestroyed () override |
void | SetStopOthers (bool new_value) override |
Public Member Functions inherited from lldb_private::ThreadPlan | |
virtual | ~ThreadPlan () |
const char * | GetName () const |
Returns the name of this thread plan. | |
Thread & | GetThread () |
Returns the Thread that is using this thread plan. | |
Target & | GetTarget () |
const Target & | GetTarget () const |
void | ClearThreadCache () |
Clear the Thread* cache. | |
virtual void | GetDescription (Stream *s, lldb::DescriptionLevel level)=0 |
Print a description of this thread to the stream s. | |
virtual bool | ValidatePlan (Stream *error)=0 |
Returns whether this plan could be successfully created. | |
bool | TracerExplainsStop () |
lldb::StateType | RunState () |
bool | PlanExplainsStop (Event *event_ptr) |
virtual bool | ShouldStop (Event *event_ptr)=0 |
virtual bool | ShouldAutoContinue (Event *event_ptr) |
Returns whether this thread plan overrides the ShouldStop of subsequently processed plans. | |
virtual Vote | ShouldReportStop (Event *event_ptr) |
Vote | ShouldReportRun (Event *event_ptr) |
virtual void | SetStopOthers (bool new_value) |
virtual bool | StopOthers () |
virtual bool | SupportsResumeOthers () |
virtual bool | ShouldRunBeforePublicStop () |
bool | WillResume (lldb::StateType resume_state, bool current_plan) |
virtual bool | WillStop ()=0 |
bool | IsControllingPlan () |
virtual bool | IsLeafPlan () |
bool | SetIsControllingPlan (bool value) |
virtual bool | OkayToDiscard () |
void | SetOkayToDiscard (bool value) |
virtual bool | MischiefManaged () |
virtual void | ThreadDestroyed () |
bool | GetPrivate () |
void | SetPrivate (bool input) |
virtual void | DidPush () |
virtual void | DidPop () |
ThreadPlanKind | GetKind () const |
bool | IsPlanComplete () |
void | SetPlanComplete (bool success=true) |
virtual bool | IsPlanStale () |
bool | PlanSucceeded () |
virtual bool | IsBasePlan () |
lldb::ThreadPlanTracerSP & | GetThreadPlanTracer () |
void | SetThreadPlanTracer (lldb::ThreadPlanTracerSP new_tracer_sp) |
void | DoTraceLog () |
virtual lldb::ValueObjectSP | GetReturnValueObject () |
virtual lldb::ExpressionVariableSP | GetExpressionVariable () |
virtual void | RestoreThreadState () |
virtual bool | IsVirtualStep () |
bool | SetIterationCount (size_t count) |
virtual lldb::StateType | GetPlanRunState ()=0 |
Public Member Functions inherited from lldb_private::UserID | |
UserID (lldb::user_id_t uid=LLDB_INVALID_UID) | |
Construct with optional user ID. | |
~UserID ()=default | |
Destructor. | |
void | Clear () |
Clears the object state. | |
lldb::user_id_t | GetID () const |
Get accessor for the user ID. | |
void | SetID (lldb::user_id_t uid) |
Set accessor for the user ID. | |
Protected Member Functions | |
void | DoTakedown (bool success) override |
Protected Member Functions inherited from lldb_private::ThreadPlanCallFunction | |
void | ReportRegisterState (const char *message) |
bool | DoPlanExplainsStop (Event *event_ptr) override |
virtual void | SetReturnValue () |
bool | ConstructorSetup (Thread &thread, ABI *&abi, lldb::addr_t &start_load_addr, lldb::addr_t &function_load_addr) |
virtual void | DoTakedown (bool success) |
void | SetBreakpoints () |
void | ClearBreakpoints () |
bool | BreakpointsExplainStop () |
Protected Member Functions inherited from lldb_private::ThreadPlan | |
ThreadPlan (ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote) | |
virtual bool | DoWillResume (lldb::StateType resume_state, bool current_plan) |
virtual bool | DoPlanExplainsStop (Event *event_ptr)=0 |
void | PushPlan (lldb::ThreadPlanSP &thread_plan_sp) |
ThreadPlan * | GetPreviousPlan () |
lldb::StopInfoSP | GetPrivateStopInfo () |
void | SetStopInfo (lldb::StopInfoSP stop_reason_sp) |
bool | IsUsuallyUnexplainedStopReason (lldb::StopReason) |
Private Member Functions | |
ThreadPlanCallUserExpression (const ThreadPlanCallUserExpression &)=delete | |
const ThreadPlanCallUserExpression & | operator= (const ThreadPlanCallUserExpression &)=delete |
Private Attributes | |
lldb::UserExpressionSP | m_user_expression_sp |
bool | m_manage_materialization = false |
lldb::ExpressionVariableSP | m_result_var_sp |
Definition at line 22 of file ThreadPlanCallUserExpression.h.
ThreadPlanCallUserExpression::ThreadPlanCallUserExpression | ( | Thread & | thread, |
Address & | function, | ||
llvm::ArrayRef< lldb::addr_t > | args, | ||
const EvaluateExpressionOptions & | options, | ||
lldb::UserExpressionSP & | user_expression_sp | ||
) |
Definition at line 34 of file ThreadPlanCallUserExpression.cpp.
References lldb_private::ThreadPlan::SetIsControllingPlan(), and lldb_private::ThreadPlan::SetOkayToDiscard().
|
overridedefault |
|
privatedelete |
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlanCallFunction.
Definition at line 62 of file ThreadPlanCallUserExpression.cpp.
References lldb_private::ThreadPlanCallFunction::DidPop(), and m_user_expression_sp.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlanCallFunction.
Definition at line 56 of file ThreadPlanCallUserExpression.cpp.
References lldb_private::ThreadPlanCallFunction::DidPush(), and m_user_expression_sp.
|
overrideprotectedvirtual |
Reimplemented from lldb_private::ThreadPlanCallFunction.
Definition at line 114 of file ThreadPlanCallUserExpression.cpp.
References lldb_private::ThreadPlanCallFunction::DoTakedown(), and m_user_expression_sp.
|
overridevirtual |
Print a description of this thread to the stream s.
thread. Don't expect that the result of GetThread is valid in the description method. This might get called when the underlying Thread has not been reported, so we only know the TID and not the thread.
[in] | s | The stream to which to print the description. |
[in] | level | The level of description desired. Note that eDescriptionLevelBrief will be used in the stop message printed when the plan is complete. |
Reimplemented from lldb_private::ThreadPlanCallFunction.
Definition at line 48 of file ThreadPlanCallUserExpression.cpp.
References lldb::eDescriptionLevelBrief, lldb_private::ThreadPlanCallFunction::GetDescription(), and lldb_private::Stream::Printf().
|
inlineoverridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 43 of file ThreadPlanCallUserExpression.h.
References m_result_var_sp.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlanCallFunction.
Definition at line 99 of file ThreadPlanCallUserExpression.cpp.
References lldb_private::DynamicCheckerFunctions::DoCheckersExplainStop(), lldb_private::StreamString::GetData(), lldb_private::Process::GetDynamicCheckers(), lldb_private::ThreadPlanCallFunction::GetRealStopInfo(), lldb_private::ThreadPlanCallFunction::GetStopAddress(), and lldb_private::ThreadPlan::m_process.
Referenced by lldb_private::LLVMUserExpression::DoExecute().
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlanCallFunction.
Definition at line 68 of file ThreadPlanCallUserExpression.cpp.
References lldb_private::ThreadPlanCallFunction::GetFunctionStackPointer(), lldb_private::GetLog(), lldb_private::ThreadPlan::GetThread(), lldb_private::ThreadPlan::IsPlanComplete(), LLDB_LOGF, m_manage_materialization, m_result_var_sp, m_user_expression_sp, lldb_private::ThreadPlan::MischiefManaged(), lldb_private::ThreadPlan::PlanSucceeded(), and lldb_private::Step.
|
privatedelete |
|
inline |
Definition at line 41 of file ThreadPlanCallUserExpression.h.
References m_manage_materialization.
Referenced by lldb_private::LLVMUserExpression::DoExecute().
|
private |
Definition at line 54 of file ThreadPlanCallUserExpression.h.
Referenced by MischiefManaged(), and TransferExpressionOwnership().
|
private |
Definition at line 56 of file ThreadPlanCallUserExpression.h.
Referenced by GetExpressionVariable(), and MischiefManaged().
|
private |
Definition at line 51 of file ThreadPlanCallUserExpression.h.
Referenced by DidPop(), DidPush(), DoTakedown(), and MischiefManaged().