ThreadPlanStepOverBreakpoint.h revision 745ac7a5826fe7c392007941a4046bfb1a8dff81
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// C Includes 14// C++ Includes 15// Other libraries and framework includes 16// Project includes 17#include "lldb/Target/Thread.h" 18#include "lldb/Target/ThreadPlan.h" 19 20namespace lldb_private { 21 22class ThreadPlanStepOverBreakpoint : public ThreadPlan 23{ 24public: 25 virtual ~ThreadPlanStepOverBreakpoint (); 26 27 ThreadPlanStepOverBreakpoint (Thread &thread); 28 virtual void GetDescription (Stream *s, lldb::DescriptionLevel level); 29 virtual bool ValidatePlan (Stream *error); 30 virtual bool PlanExplainsStop (); 31 virtual bool ShouldStop (Event *event_ptr); 32 virtual bool StopOthers (); 33 virtual lldb::StateType GetPlanRunState (); 34 virtual bool WillResume (lldb::StateType resume_state, bool current_plan); 35 virtual bool WillStop (); 36 virtual bool MischiefManaged (); 37 void SetAutoContinue (bool do_it); 38 virtual bool ShouldAutoContinue(Event *event_ptr); 39 40protected: 41 42private: 43 44 lldb::addr_t m_breakpoint_addr; 45 lldb::user_id_t m_breakpoint_site_id; 46 bool m_auto_continue; 47 48 DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepOverBreakpoint); 49 50}; 51 52} // namespace lldb_private 53 54#endif // liblldb_ThreadPlanStepOverBreakpoint_h_ 55