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_
13 #include "lldb/Core/AddressRange.h"
14 #include "lldb/Target/StackID.h"
15 #include "lldb/Target/Thread.h"
16 #include "lldb/Target/ThreadPlanStepRange.h"
18 namespace lldb_private {
20 class ThreadPlanStepOverRange : public ThreadPlanStepRange,
21 ThreadPlanShouldStopHere {
23 ThreadPlanStepOverRange(Thread &thread, const AddressRange &range,
24 const SymbolContext &addr_context,
25 lldb::RunMode stop_others,
26 LazyBool step_out_avoids_no_debug);
28 ~ThreadPlanStepOverRange() override;
30 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
31 bool ShouldStop(Event *event_ptr) override;
34 bool DoPlanExplainsStop(Event *event_ptr) override;
35 bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
37 void SetFlagsToDefault() override {
38 GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values);
42 static uint32_t s_default_flag_values;
44 void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info);
45 bool IsEquivalentContext(const SymbolContext &context);
49 DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOverRange);
52 } // namespace lldb_private
54 #endif // liblldb_ThreadPlanStepOverRange_h_