|
LLDB mainline
|
#include <ThreadPlanStepUntil.h>
Public Member Functions | |
| ThreadPlanStepUntil (Thread &thread, llvm::ArrayRef< lldb::addr_t > address_list, bool stop_others, uint32_t frame_idx=0) | |
| ~ThreadPlanStepUntil () 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 |
| bool | StopOthers () override |
| lldb::StateType | GetPlanRunState () override |
| bool | WillStop () override |
| bool | MischiefManaged () 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. | |
| bool | TracerExplainsStop () |
| lldb::StateType | RunState () |
| bool | PlanExplainsStop (Event *event_ptr) |
| 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 | SupportsResumeOthers () |
| virtual bool | ShouldRunBeforePublicStop () |
| bool | WillResume (lldb::StateType resume_state, bool current_plan) |
| bool | IsControllingPlan () |
| virtual bool | IsLeafPlan () |
| bool | SetIsControllingPlan (bool value) |
| virtual bool | OkayToDiscard () |
| void | SetOkayToDiscard (bool value) |
| 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::RunDirection | GetDirection () const |
| 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 | |
| bool | DoWillResume (lldb::StateType resume_state, bool current_plan) override |
| bool | DoPlanExplainsStop (Event *event_ptr) override |
| void | AnalyzeStop () |
| Protected Member Functions inherited from lldb_private::ThreadPlan | |
| ThreadPlan (ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote) | |
| void | PushPlan (lldb::ThreadPlanSP &thread_plan_sp) |
| ThreadPlan * | GetPreviousPlan () |
| lldb::StopInfoSP | GetPrivateStopInfo () |
| void | SetStopInfo (lldb::StopInfoSP stop_reason_sp) |
| bool | IsUsuallyUnexplainedStopReason (lldb::StopReason) |
Private Types | |
| typedef std::map< lldb::addr_t, lldb::break_id_t > | until_collection |
Private Member Functions | |
| void | Clear () |
| ThreadPlanStepUntil (const ThreadPlanStepUntil &)=delete | |
| const ThreadPlanStepUntil & | operator= (const ThreadPlanStepUntil &)=delete |
Additional Inherited Members | |
| Public Types inherited from lldb_private::ThreadPlan | |
| enum | ThreadPlanKind { eKindGeneric , eKindNull , eKindBase , eKindCallFunction , eKindPython , eKindStepInstruction , eKindStepOut , eKindStepOverBreakpoint , eKindStepOverRange , eKindStepInRange , eKindRunToAddress , eKindStepThrough , eKindStepUntil , eKindSingleThreadTimeout } |
| Protected Attributes inherited from lldb_private::ThreadPlan | |
| Status | m_status |
| Process & | m_process |
| lldb::tid_t | m_tid |
| Vote | m_report_stop_vote |
| Vote | m_report_run_vote |
| bool | m_takes_iteration_count |
| bool | m_could_not_resolve_hw_bp |
| int32_t | m_iteration_count = 1 |
| Protected Attributes inherited from lldb_private::UserID | |
| lldb::user_id_t | m_uid |
| The user ID that uniquely identifies an object. | |
Definition at line 17 of file ThreadPlanStepUntil.h.
|
private |
Definition at line 48 of file ThreadPlanStepUntil.h.
| lldb_private::ThreadPlanStepUntil::ThreadPlanStepUntil | ( | Thread & | thread, |
| llvm::ArrayRef< lldb::addr_t > | address_list, | ||
| bool | stop_others, | ||
| uint32_t | frame_idx = 0 ) |
References error().
Referenced by operator=(), and ThreadPlanStepUntil().
|
override |
Definition at line 79 of file ThreadPlanStepUntil.cpp.
References Clear().
|
privatedelete |
References ThreadPlanStepUntil().
|
protected |
Definition at line 143 of file ThreadPlanStepUntil.cpp.
References lldb::eStopReasonBreakpoint, lldb_private::ThreadPlan::GetPrivateStopInfo(), lldb_private::ThreadPlan::GetThread(), lldb_private::ThreadPlan::IsUsuallyUnexplainedStopReason(), m_explains_stop, lldb_private::ThreadPlan::m_process, m_ran_analyze, m_return_bp_id, m_should_stop, m_stack_id, m_stepped_out, m_until_points, and lldb_private::ThreadPlan::SetPlanComplete().
Referenced by DoPlanExplainsStop(), and ShouldStop().
|
private |
Definition at line 81 of file ThreadPlanStepUntil.cpp.
References lldb_private::ThreadPlan::GetTarget(), LLDB_INVALID_BREAK_ID, lldb_private::ThreadPlan::m_could_not_resolve_hw_bp, m_return_bp_id, m_until_points, and lldb_private::Target::RemoveBreakpointByID().
Referenced by MischiefManaged(), and ~ThreadPlanStepUntil().
Implements lldb_private::ThreadPlan.
Definition at line 252 of file ThreadPlanStepUntil.cpp.
References AnalyzeStop(), and m_explains_stop.
|
overrideprotectedvirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 276 of file ThreadPlanStepUntil.cpp.
References lldb_private::Target::GetBreakpointByID(), lldb_private::ThreadPlan::GetTarget(), m_explains_stop, m_ran_analyze, m_return_bp_id, m_should_stop, m_until_points, and lldb_private::Breakpoint::SetEnabled().
|
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. |
Implements lldb_private::ThreadPlan.
Definition at line 96 of file ThreadPlanStepUntil.cpp.
References lldb::eDescriptionLevelBrief, m_return_addr, m_step_from_insn, m_stepped_out, m_until_points, and lldb_private::Stream::Printf().
|
overridevirtual |
Implements lldb_private::ThreadPlan.
Definition at line 274 of file ThreadPlanStepUntil.cpp.
References lldb::eStateRunning.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 313 of file ThreadPlanStepUntil.cpp.
References Clear(), lldb_private::GetLog(), lldb_private::ThreadPlan::IsPlanComplete(), LLDB_LOGF, lldb_private::ThreadPlan::MischiefManaged(), and lldb_private::Step.
|
privatedelete |
References ThreadPlanStepUntil().
Implements lldb_private::ThreadPlan.
Definition at line 259 of file ThreadPlanStepUntil.cpp.
References AnalyzeStop(), lldb::eStopReasonNone, lldb_private::ThreadPlan::GetPrivateStopInfo(), and m_should_stop.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 272 of file ThreadPlanStepUntil.cpp.
References m_stop_others.
Returns whether this plan could be successfully created.
| [in] | error | A stream to which to print some reason why the plan could not be created. Can be NULL. |
Implements lldb_private::ThreadPlan.
Definition at line 123 of file ThreadPlanStepUntil.cpp.
References error(), LLDB_BREAK_ID_IS_VALID, LLDB_INVALID_BREAK_ID, lldb_private::ThreadPlan::m_could_not_resolve_hw_bp, m_return_bp_id, and m_until_points.
|
overridevirtual |
Implements lldb_private::ThreadPlan.
Definition at line 298 of file ThreadPlanStepUntil.cpp.
References lldb_private::Target::GetBreakpointByID(), lldb_private::ThreadPlan::GetTarget(), m_return_bp_id, m_until_points, and lldb_private::Breakpoint::SetEnabled().
|
private |
Definition at line 46 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop(), DoPlanExplainsStop(), and DoWillResume().
|
private |
Definition at line 45 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop(), and DoWillResume().
|
private |
Definition at line 42 of file ThreadPlanStepUntil.h.
Referenced by GetDescription().
|
private |
Definition at line 41 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop(), Clear(), DoWillResume(), ValidatePlan(), and WillStop().
|
private |
Definition at line 44 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop(), DoWillResume(), and ShouldStop().
|
private |
Definition at line 39 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop().
|
private |
Definition at line 40 of file ThreadPlanStepUntil.h.
Referenced by GetDescription().
|
private |
Definition at line 43 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop(), and GetDescription().
|
private |
Definition at line 50 of file ThreadPlanStepUntil.h.
Referenced by StopOthers().
|
private |
Definition at line 49 of file ThreadPlanStepUntil.h.
Referenced by AnalyzeStop(), Clear(), DoWillResume(), GetDescription(), ValidatePlan(), and WillStop().