1 //===-- ThreadPlanStepOverRange.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_ThreadPlanStepOverRange_h_
11 #define liblldb_ThreadPlanStepOverRange_h_
15 // Other libraries and framework 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"
22 namespace lldb_private {
24 class ThreadPlanStepOverRange : public ThreadPlanStepRange,
25 ThreadPlanShouldStopHere {
27 ThreadPlanStepOverRange(Thread &thread, const AddressRange &range,
28 const SymbolContext &addr_context,
29 lldb::RunMode stop_others,
30 LazyBool step_out_avoids_no_debug);
32 ~ThreadPlanStepOverRange() override;
34 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
35 bool ShouldStop(Event *event_ptr) override;
38 bool DoPlanExplainsStop(Event *event_ptr) override;
39 bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
41 void SetFlagsToDefault() override {
42 GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values);
46 static uint32_t s_default_flag_values;
48 void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info);
49 bool IsEquivalentContext(const SymbolContext &context);
53 DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOverRange);
56 } // namespace lldb_private
58 #endif // liblldb_ThreadPlanStepOverRange_h_