LLDB mainline
ScriptedStopHookPythonInterface.h
Go to the documentation of this file.
1//===-- ScriptedStopHookPythonInterface.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_SCRIPTEDSTOPHOOKPYTHONINTERFACE_H
10#define LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDSTOPHOOKPYTHONINTERFACE_H
11
13
15
16namespace lldb_private {
19 public PluginInterface {
20public:
22
23 llvm::Expected<StructuredData::GenericSP>
24 CreatePluginObject(llvm::StringRef class_name, lldb::TargetSP target_sp,
25 const StructuredDataImpl &args_sp) override;
26
27 llvm::SmallVector<AbstractMethodRequirement>
29 return llvm::SmallVector<AbstractMethodRequirement>({{"handle_stop", 2}});
30 }
31
32 llvm::Expected<bool> HandleStop(ExecutionContext &exe_ctx,
33 lldb::StreamSP &output_sp) override;
34
35 static void Initialize();
36
37 static void Terminate();
38
39 static llvm::StringRef GetPluginNameStatic() {
40 return "ScriptedStopHookPythonInterface";
41 }
42
43 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
44};
45} // namespace lldb_private
46
47#endif // LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDSTOPHOOKPYTHONINTERFACE_H
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
ScriptedPythonInterface(ScriptInterpreterPythonImpl &interpreter)
llvm::SmallVector< AbstractMethodRequirement > GetAbstractMethodRequirements() const override
ScriptedStopHookPythonInterface(ScriptInterpreterPythonImpl &interpreter)
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, lldb::TargetSP target_sp, const StructuredDataImpl &args_sp) override
llvm::Expected< bool > HandleStop(ExecutionContext &exe_ctx, lldb::StreamSP &output_sp) override
"handle_stop" will return a bool with the meaning "should_stop"... If nothing is returned,...
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Stream > StreamSP
std::shared_ptr< lldb_private::Target > TargetSP