ThreadPlanStepOverBreakpoint.h revision 5a47e8bcc7277dc3683f2af2aeb9717184e8360c
1//===-- ThreadPlanStepOverBreakpoint.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_ThreadPlanStepOverBreakpoint_h_
11#define liblldb_ThreadPlanStepOverBreakpoint_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
20namespace lldb_private {
21
22class ThreadPlanStepOverBreakpoint : public ThreadPlan
23{
24public:
25    virtual ~ThreadPlanStepOverBreakpoint ();
26
27    ThreadPlanStepOverBreakpoint (Thread &thread);
28    virtual void GetDescription (Stream *s, lldb::DescriptionLevel level);
29    virtual bool ValidatePlan (Stream *error);
30    virtual bool PlanExplainsStop ();
31    virtual bool ShouldStop (Event *event_ptr);
32    virtual bool StopOthers ();
33    virtual lldb::StateType RunState ();
34    virtual bool IsImmediate () const
35    {
36        return false;
37    }
38    virtual bool WillResume (lldb::StateType resume_state, bool current_plan);
39    virtual bool WillStop ();
40    virtual bool MischiefManaged ();
41    void SetAutoContinue (bool do_it);
42    virtual bool ShouldAutoContinue(Event *event_ptr);
43
44protected:
45
46private:
47
48    lldb::addr_t m_breakpoint_addr;
49    lldb::user_id_t m_breakpoint_site_id;
50    bool m_auto_continue;
51
52    DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepOverBreakpoint);
53
54};
55
56} // namespace lldb_private
57
58#endif  // liblldb_ThreadPlanStepOverBreakpoint_h_
59