]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Target/ThreadPlanPython.h
Merging ^/head r278298 through r278350.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Target / ThreadPlanPython.h
1 //===-- ThreadPlanPython.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_ThreadPlan_Python_h_
11 #define liblldb_ThreadPlan_Python_h_
12
13 // C Includes
14 // C++ Includes
15 #include <string>
16 // Other libraries and framework includes
17 // Project includes
18 #include "lldb/lldb-private.h"
19 #include "lldb/Core/UserID.h"
20 #include "lldb/Host/Mutex.h"
21 #include "lldb/Target/Process.h"
22 #include "lldb/Target/Target.h"
23 #include "lldb/Target/Thread.h"
24 #include "lldb/Target/ThreadPlan.h"
25 #include "lldb/Target/ThreadPlanTracer.h"
26 #include "lldb/Target/StopInfo.h"
27
28 namespace lldb_private {
29
30 //------------------------------------------------------------------
31 //  ThreadPlanPython:
32 //
33 //------------------------------------------------------------------
34
35 class ThreadPlanPython : public ThreadPlan
36 {
37 public:
38     ThreadPlanPython (Thread &thread, const char *class_name);
39     virtual ~ThreadPlanPython ();
40     
41     virtual void
42     GetDescription (Stream *s,
43                     lldb::DescriptionLevel level);
44
45     virtual bool
46     ValidatePlan (Stream *error);
47
48     virtual bool
49     ShouldStop (Event *event_ptr);
50
51     virtual bool
52     MischiefManaged ();
53
54     virtual bool
55     WillStop ();
56
57     virtual bool
58     StopOthers ();
59
60     virtual void
61     DidPush ();
62
63 protected:
64     virtual bool
65     DoPlanExplainsStop (Event *event_ptr);
66     
67     virtual lldb::StateType
68     GetPlanRunState ();
69
70 private:
71     std::string                     m_class_name;
72     lldb::ScriptInterpreterObjectSP m_implementation_sp;
73
74     DISALLOW_COPY_AND_ASSIGN(ThreadPlanPython);
75 };
76
77
78 } // namespace lldb_private
79
80 #endif  // liblldb_ThreadPlan_Python_h_