]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Target/ThreadPlanStepInstruction.h
Update private sqlite from sqlite3-3.20.0 to sqlite3-3.23.1
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Target / ThreadPlanStepInstruction.h
1 //===-- ThreadPlanStepInstruction.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_ThreadPlanStepInstruction_h_
11 #define liblldb_ThreadPlanStepInstruction_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 #include "lldb/lldb-private.h"
20
21 namespace lldb_private {
22
23 class ThreadPlanStepInstruction : public ThreadPlan {
24 public:
25   ThreadPlanStepInstruction(Thread &thread, bool step_over, bool stop_others,
26                             Vote stop_vote, Vote run_vote);
27
28   ~ThreadPlanStepInstruction() override;
29
30   void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
31   bool ValidatePlan(Stream *error) override;
32   bool ShouldStop(Event *event_ptr) override;
33   bool StopOthers() override;
34   lldb::StateType GetPlanRunState() override;
35   bool WillStop() override;
36   bool MischiefManaged() override;
37   bool IsPlanStale() override;
38
39 protected:
40   bool DoPlanExplainsStop(Event *event_ptr) override;
41
42   void SetUpState();
43
44 private:
45   friend lldb::ThreadPlanSP Thread::QueueThreadPlanForStepSingleInstruction(
46       bool step_over, bool abort_other_plans, bool stop_other_threads);
47
48   lldb::addr_t m_instruction_addr;
49   bool m_stop_other_threads;
50   bool m_step_over;
51   // These two are used only for the step over case.
52   bool m_start_has_symbol;
53   StackID m_stack_id;
54   StackID m_parent_frame_id;
55
56   DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepInstruction);
57 };
58
59 } // namespace lldb_private
60
61 #endif // liblldb_ThreadPlanStepInstruction_h_