9#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H
10#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H
12#include "lldb/Host/Config.h"
21class ScriptedThreadPythonInterface :
public ScriptedThreadInterface,
22 public ScriptedPythonInterface {
24 ScriptedThreadPythonInterface(ScriptInterpreterPythonImpl &interpreter);
26 llvm::Expected<StructuredData::GenericSP>
27 CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,
28 StructuredData::DictionarySP args_sp,
29 StructuredData::Generic *script_obj =
nullptr)
override;
31 llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods()
const override {
32 return llvm::SmallVector<llvm::StringLiteral>(
33 {
"get_stop_reason",
"get_register_context"});
38 std::optional<std::string>
GetName()
override;
42 std::optional<std::string> GetQueue()
override;
44 StructuredData::DictionarySP GetStopReason()
override;
46 StructuredData::ArraySP GetStackFrames()
override;
48 StructuredData::DictionarySP GetRegisterInfo()
override;
50 std::optional<std::string> GetRegisterContext()
override;
52 StructuredData::ArraySP GetExtendedInfo()
override;
static llvm::StringRef GetName(XcodeSDK::Type type)
A class that represents a running process on the host machine.
StateType
Process and Thread States.