ThreadPlanStepThrough.h revision 745ac7a5826fe7c392007941a4046bfb1a8dff81
1//===-- ThreadPlanStepThrough.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_ThreadPlanStepThrough_h_ 11#define liblldb_ThreadPlanStepThrough_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 ThreadPlanStepThrough : public ThreadPlan 23{ 24public: 25 virtual ~ThreadPlanStepThrough (); 26 27 virtual void GetDescription (Stream *s, lldb::DescriptionLevel level); 28 virtual bool ValidatePlan (Stream *error); 29 virtual bool PlanExplainsStop (); 30 virtual bool ShouldStop (Event *event_ptr); 31 virtual bool StopOthers (); 32 virtual lldb::StateType GetPlanRunState (); 33 virtual bool WillResume (lldb::StateType resume_state, bool current_plan); 34 virtual bool WillStop (); 35 virtual bool MischiefManaged (); 36 37protected: 38 ThreadPlanStepThrough (Thread &thread, 39 bool stop_others); 40 41 bool 42 HappyToStopHere (); 43 44private: 45 friend ThreadPlan * 46 Thread::QueueThreadPlanForStepThrough (bool abort_other_plans, 47 bool stop_others); 48 49 lldb::addr_t m_start_address; 50 bool m_stop_others; 51 52 DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepThrough); 53 54}; 55 56} // namespace lldb_private 57 58#endif // liblldb_ThreadPlanStepThrough_h_ 59