1 //===-- ThreadPlanStepThrough.h ---------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ThreadPlanStepThrough_h_
11 #define liblldb_ThreadPlanStepThrough_h_
15 // Other libraries and framework includes
17 #include "lldb/Target/Thread.h"
18 #include "lldb/Target/ThreadPlan.h"
20 namespace lldb_private {
22 class ThreadPlanStepThrough : public ThreadPlan {
24 ~ThreadPlanStepThrough() override;
26 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
27 bool ValidatePlan(Stream *error) override;
28 bool ShouldStop(Event *event_ptr) override;
29 bool StopOthers() override;
30 lldb::StateType GetPlanRunState() override;
31 bool WillStop() override;
32 bool MischiefManaged() override;
33 void DidPush() override;
36 bool DoPlanExplainsStop(Event *event_ptr) override;
37 bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
39 ThreadPlanStepThrough(Thread &thread, StackID &return_stack_id,
42 void LookForPlanToStepThroughFromCurrentPC();
44 bool HitOurBackstopBreakpoint();
47 friend lldb::ThreadPlanSP
49 Thread::QueueThreadPlanForStepThrough(StackID &return_stack_id,
50 bool abort_other_plans,
53 void ClearBackstopBreakpoint();
55 lldb::ThreadPlanSP m_sub_plan_sp;
56 lldb::addr_t m_start_address;
57 lldb::break_id_t m_backstop_bkpt_id;
58 lldb::addr_t m_backstop_addr;
59 StackID m_return_stack_id;
62 DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepThrough);
65 } // namespace lldb_private
67 #endif // liblldb_ThreadPlanStepThrough_h_