1 //===-- ThreadPlanStepUntil.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_ThreadPlanStepUntil_h_
11 #define liblldb_ThreadPlanStepUntil_h_
15 // Other libraries and framework includes
17 #include "lldb/Target/Thread.h"
18 #include "lldb/Target/ThreadPlan.h"
20 namespace lldb_private {
23 class ThreadPlanStepUntil : public ThreadPlan
26 virtual ~ThreadPlanStepUntil ();
28 virtual void GetDescription (Stream *s, lldb::DescriptionLevel level);
29 virtual bool ValidatePlan (Stream *error);
30 virtual bool ShouldStop (Event *event_ptr);
31 virtual bool StopOthers ();
32 virtual lldb::StateType GetPlanRunState ();
33 virtual bool WillStop ();
34 virtual bool MischiefManaged ();
37 virtual bool DoWillResume (lldb::StateType resume_state, bool current_plan);
38 virtual bool DoPlanExplainsStop (Event *event_ptr);
40 ThreadPlanStepUntil (Thread &thread,
41 lldb::addr_t *address_list,
44 uint32_t frame_idx = 0);
45 void AnalyzeStop(void);
50 lldb::addr_t m_step_from_insn;
51 lldb::break_id_t m_return_bp_id;
52 lldb::addr_t m_return_addr;
58 typedef std::map<lldb::addr_t,lldb::break_id_t> until_collection;
59 until_collection m_until_points;
64 friend lldb::ThreadPlanSP
65 Thread::QueueThreadPlanForStepUntil (bool abort_other_plans,
66 lldb::addr_t *address_list,
71 // Need an appropriate marker for the current stack so we can tell step out
74 DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepUntil);
78 } // namespace lldb_private
80 #endif // liblldb_ThreadPlanStepUntil_h_