ThreadPlanStepOverBreakpoint.h revision 863aa28adf536c9c008e1590f25da662431d6f13
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 ShouldStop (Event *event_ptr);
31    virtual bool StopOthers ();
32    virtual lldb::StateType GetPlanRunState ();
33    virtual bool WillStop ();
34    virtual bool MischiefManaged ();
35    virtual void ThreadDestroyed ();
36    void SetAutoContinue (bool do_it);
37    virtual bool ShouldAutoContinue(Event *event_ptr);
38
39protected:
40    virtual bool DoPlanExplainsStop (Event *event_ptr);
41    virtual bool DoWillResume (lldb::StateType resume_state, bool current_plan);
42
43    void ReenableBreakpointSite ();
44private:
45
46    lldb::addr_t m_breakpoint_addr;
47    lldb::user_id_t m_breakpoint_site_id;
48    bool m_auto_continue;
49    bool m_reenabled_breakpoint_site;
50
51    DISALLOW_COPY_AND_ASSIGN (ThreadPlanStepOverBreakpoint);
52
53};
54
55} // namespace lldb_private
56
57#endif  // liblldb_ThreadPlanStepOverBreakpoint_h_
58