1 //===-- ThreadPlanStepOverBreakpoint.h --------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef liblldb_ThreadPlanStepOverBreakpoint_h_ 11 #define liblldb_ThreadPlanStepOverBreakpoint_h_ 12 13 #include "lldb/Target/Thread.h" 14 #include "lldb/Target/ThreadPlan.h" 15 16 namespace lldb_private { 17 18 class ThreadPlanStepOverBreakpoint : public ThreadPlan { 19 public: 20 ThreadPlanStepOverBreakpoint(Thread &thread); 21 22 ~ThreadPlanStepOverBreakpoint() override; 23 24 void GetDescription(Stream *s, lldb::DescriptionLevel level) override; 25 bool ValidatePlan(Stream *error) override; 26 bool ShouldStop(Event *event_ptr) override; 27 bool StopOthers() override; 28 lldb::StateType GetPlanRunState() override; 29 bool WillStop() override; 30 void WillPop() override; 31 bool MischiefManaged() override; 32 void ThreadDestroyed() override; 33 void SetAutoContinue(bool do_it); 34 bool ShouldAutoContinue(Event *event_ptr) override; 35 bool IsPlanStale() override; 36 GetBreakpointLoadAddress()37 lldb::addr_t GetBreakpointLoadAddress() const { return m_breakpoint_addr; } 38 39 protected: 40 bool DoPlanExplainsStop(Event *event_ptr) override; 41 bool DoWillResume(lldb::StateType resume_state, bool current_plan) override; 42 43 void ReenableBreakpointSite(); 44 45 private: 46 lldb::addr_t m_breakpoint_addr; 47 lldb::user_id_t m_breakpoint_site_id; 48 bool m_auto_continue; 49 bool m_reenabled_breakpoint_site; 50 51 DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOverBreakpoint); 52 }; 53 54 } // namespace lldb_private 55 56 #endif // liblldb_ThreadPlanStepOverBreakpoint_h_ 57