LLDB mainline
ScriptedThreadPlanPythonInterface.h
Go to the documentation of this file.
1//===-- ScriptedThreadPlanPythonInterface.h ---------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPLANPYTHONINTERFACE_H
10#define LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPLANPYTHONINTERFACE_H
11
13
15
16#include <optional>
17
18namespace lldb_private {
21 public PluginInterface {
22public:
24
25 llvm::Expected<StructuredData::GenericSP>
26 CreatePluginObject(const llvm::StringRef class_name,
27 lldb::ThreadPlanSP thread_plan_sp,
28 const StructuredDataImpl &args_sp) override;
29
30 llvm::SmallVector<AbstractMethodRequirement>
32 return {};
33 }
34
35 llvm::Expected<bool> ExplainsStop(Event *event) override;
36
37 llvm::Expected<bool> ShouldStop(Event *event) override;
38
39 llvm::Expected<bool> IsStale() override;
40
42
43 llvm::Error GetStopDescription(lldb::StreamSP &stream) override;
44
45 static void Initialize();
46
47 static void Terminate();
48
49 static llvm::StringRef GetPluginNameStatic() {
50 return "ScriptedThreadPlanPythonInterface";
51 }
52
53 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
54};
55} // namespace lldb_private
56
57#endif // LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPLANPYTHONINTERFACE_H
ScriptedPythonInterface(ScriptInterpreterPythonImpl &interpreter)
llvm::Error GetStopDescription(lldb::StreamSP &stream) override
llvm::Expected< bool > ShouldStop(Event *event) override
ScriptedThreadPlanPythonInterface(ScriptInterpreterPythonImpl &interpreter)
llvm::SmallVector< AbstractMethodRequirement > GetAbstractMethodRequirements() const override
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(const llvm::StringRef class_name, lldb::ThreadPlanSP thread_plan_sp, const StructuredDataImpl &args_sp) override
llvm::Expected< bool > ExplainsStop(Event *event) override
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
StateType
Process and Thread States.
std::shared_ptr< lldb_private::Stream > StreamSP