1 //===-- ThreadPlanStepOverRange.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_ThreadPlanStepOverRange_h_ 11 #define liblldb_ThreadPlanStepOverRange_h_ 12 13 // C Includes 14 // C++ Includes 15 // Other libraries and framework includes 16 // Project includes 17 #include "lldb/Core/AddressRange.h" 18 #include "lldb/Target/StackID.h" 19 #include "lldb/Target/Thread.h" 20 #include "lldb/Target/ThreadPlanStepRange.h" 21 22 namespace lldb_private { 23 24 class ThreadPlanStepOverRange : public ThreadPlanStepRange, 25 ThreadPlanShouldStopHere 26 { 27 public: 28 29 ThreadPlanStepOverRange (Thread &thread, 30 const AddressRange &range, 31 const SymbolContext &addr_context, 32 lldb::RunMode stop_others, 33 LazyBool step_out_avoids_no_debug); 34 35 virtual ~ThreadPlanStepOverRange (); 36 37 virtual void GetDescription (Stream *s, lldb::DescriptionLevel level); 38 virtual bool ShouldStop (Event *event_ptr); 39 40 protected: 41 virtual bool DoPlanExplainsStop (Event *event_ptr); 42 virtual bool DoWillResume (lldb::StateType resume_state, bool current_plan); 43 44 virtual void SetFlagsToDefault()45 SetFlagsToDefault () 46 { 47 GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values); 48 } 49 50 51 52 private: 53 54 static uint32_t s_default_flag_values; 55 56 void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info); 57 bool IsEquivalentContext(const SymbolContext &context); 58 59 bool m_first_resume; 60 61 DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepOverRange); 62 63 }; 64 65 } // namespace lldb_private 66 67 #endif // liblldb_ThreadPlanStepOverRange_h_ 68