1 //===-- ThreadPlanPython.h --------------------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef liblldb_ThreadPlan_Python_h_
12 #define liblldb_ThreadPlan_Python_h_
18 // Other libraries and framework includes
20 #include "lldb/Target/Process.h"
21 #include "lldb/Target/StopInfo.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/Utility/StructuredData.h"
27 #include "lldb/Utility/UserID.h"
28 #include "lldb/lldb-private.h"
30 namespace lldb_private {
32 //------------------------------------------------------------------
35 //------------------------------------------------------------------
37 class ThreadPlanPython : public ThreadPlan {
39 ThreadPlanPython(Thread &thread, const char *class_name);
40 ~ThreadPlanPython() override;
42 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
44 bool ValidatePlan(Stream *error) override;
46 bool ShouldStop(Event *event_ptr) override;
48 bool MischiefManaged() override;
50 bool WillStop() override;
52 bool StopOthers() override;
54 void DidPush() override;
56 bool IsPlanStale() override;
59 bool DoPlanExplainsStop(Event *event_ptr) override;
61 lldb::StateType GetPlanRunState() override;
64 std::string m_class_name;
65 StructuredData::ObjectSP m_implementation_sp;
67 DISALLOW_COPY_AND_ASSIGN(ThreadPlanPython);
70 } // namespace lldb_private
72 #endif // liblldb_ThreadPlan_Python_h_