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