]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Target/ThreadPlanStepOverRange.h
Merge ^/head r295902 through r296006.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Target / ThreadPlanStepOverRange.h
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     ThreadPlanStepOverRange (Thread &thread, 
29                              const AddressRange &range, 
30                              const SymbolContext &addr_context, 
31                              lldb::RunMode stop_others,
32                              LazyBool step_out_avoids_no_debug);
33                              
34     ~ThreadPlanStepOverRange() override;
35
36     void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
37     bool ShouldStop(Event *event_ptr) override;
38     
39 protected:
40     bool DoPlanExplainsStop(Event *event_ptr) override;
41     bool DoWillResume(lldb::StateType resume_state, bool current_plan) override;
42     
43     void
44     SetFlagsToDefault() override
45     {
46         GetFlags().Set(ThreadPlanStepOverRange::s_default_flag_values);
47     }
48
49 private:
50     static uint32_t s_default_flag_values;
51     
52     void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info);
53     bool IsEquivalentContext(const SymbolContext &context);
54
55     bool m_first_resume;
56
57     DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepOverRange);
58 };
59
60 } // namespace lldb_private
61
62 #endif // liblldb_ThreadPlanStepOverRange_h_