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_
16 #include "lldb/Target/Process.h"
17 #include "lldb/Target/StopInfo.h"
18 #include "lldb/Target/Target.h"
19 #include "lldb/Target/Thread.h"
20 #include "lldb/Target/ThreadPlan.h"
21 #include "lldb/Target/ThreadPlanTracer.h"
22 #include "lldb/Utility/StructuredData.h"
23 #include "lldb/Utility/UserID.h"
24 #include "lldb/lldb-private.h"
26 namespace lldb_private {
28 //------------------------------------------------------------------
31 //------------------------------------------------------------------
33 class ThreadPlanPython : public ThreadPlan {
35 ThreadPlanPython(Thread &thread, const char *class_name);
36 ~ThreadPlanPython() override;
38 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
40 bool ValidatePlan(Stream *error) override;
42 bool ShouldStop(Event *event_ptr) override;
44 bool MischiefManaged() override;
46 bool WillStop() override;
48 bool StopOthers() override;
50 void DidPush() override;
52 bool IsPlanStale() override;
55 bool DoPlanExplainsStop(Event *event_ptr) override;
57 lldb::StateType GetPlanRunState() override;
60 std::string m_class_name;
61 StructuredData::ObjectSP m_implementation_sp;
64 DISALLOW_COPY_AND_ASSIGN(ThreadPlanPython);
67 } // namespace lldb_private
69 #endif // liblldb_ThreadPlan_Python_h_