9#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H
10#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H
12#include "lldb/Host/Config.h"
21class OperatingSystemPythonInterface
22 :
virtual public OperatingSystemInterface,
23 virtual public ScriptedThreadPythonInterface {
25 OperatingSystemPythonInterface(ScriptInterpreterPythonImpl &interpreter);
27 llvm::Expected<StructuredData::GenericSP>
28 CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,
29 StructuredData::DictionarySP args_sp,
30 StructuredData::Generic *script_obj =
nullptr)
override;
32 llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods()
const override {
33 return llvm::SmallVector<llvm::StringLiteral>({
"get_thread_info"});
36 StructuredData::DictionarySP CreateThread(
lldb::tid_t tid,
39 StructuredData::ArraySP GetThreadInfo()
override;
41 StructuredData::DictionarySP GetRegisterInfo()
override;
43 std::optional<std::string> GetRegisterContextForTID(
lldb::tid_t tid)
override;
A class that represents a running process on the host machine.