1 //===-- ThreadPlanPython.h --------------------------------------------*- C++
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ThreadPlan_Python_h_
11 #define liblldb_ThreadPlan_Python_h_
15 #include "lldb/Target/Process.h"
16 #include "lldb/Target/StopInfo.h"
17 #include "lldb/Target/Target.h"
18 #include "lldb/Target/Thread.h"
19 #include "lldb/Target/ThreadPlan.h"
20 #include "lldb/Target/ThreadPlanTracer.h"
21 #include "lldb/Utility/StructuredData.h"
22 #include "lldb/Utility/UserID.h"
23 #include "lldb/lldb-private.h"
25 namespace lldb_private {
30 class ThreadPlanPython : public ThreadPlan {
32 ThreadPlanPython(Thread &thread, const char *class_name);
33 ~ThreadPlanPython() override;
35 void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
37 bool ValidatePlan(Stream *error) override;
39 bool ShouldStop(Event *event_ptr) override;
41 bool MischiefManaged() override;
43 bool WillStop() override;
45 bool StopOthers() override;
47 void DidPush() override;
49 bool IsPlanStale() override;
52 bool DoPlanExplainsStop(Event *event_ptr) override;
54 lldb::StateType GetPlanRunState() override;
57 std::string m_class_name;
58 StructuredData::ObjectSP m_implementation_sp;
61 DISALLOW_COPY_AND_ASSIGN(ThreadPlanPython);
64 } // namespace lldb_private
66 #endif // liblldb_ThreadPlan_Python_h_