1 //===-- ThreadPlanStepInstruction.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_ThreadPlanStepInstruction_h_
11 #define liblldb_ThreadPlanStepInstruction_h_
15 // Other libraries and framework includes
17 #include "lldb/lldb-private.h"
18 #include "lldb/Target/Thread.h"
19 #include "lldb/Target/ThreadPlan.h"
21 namespace lldb_private {
23 class ThreadPlanStepInstruction : public ThreadPlan
26 ~ThreadPlanStepInstruction() override;
28 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
29 bool ValidatePlan(Stream *error) override;
30 bool ShouldStop(Event *event_ptr) override;
31 bool StopOthers() override;
32 lldb::StateType GetPlanRunState() override;
33 bool WillStop() override;
34 bool MischiefManaged() override;
35 bool IsPlanStale() override;
38 bool DoPlanExplainsStop(Event *event_ptr) override;
40 ThreadPlanStepInstruction (Thread &thread,
48 friend lldb::ThreadPlanSP
49 Thread::QueueThreadPlanForStepSingleInstruction (bool step_over, bool abort_other_plans, bool stop_other_threads);
51 lldb::addr_t m_instruction_addr;
52 bool m_stop_other_threads;
54 // These two are used only for the step over case.
55 bool m_start_has_symbol;
57 StackID m_parent_frame_id;
59 DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepInstruction);
62 } // namespace lldb_private
64 #endif // liblldb_ThreadPlanStepInstruction_h_