9#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H
10#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H
12#include "lldb/Host/Config.h"
22class OperatingSystemPythonInterface
23 :
virtual public OperatingSystemInterface,
24 virtual public ScriptedThreadPythonInterface,
25 public PluginInterface {
27 OperatingSystemPythonInterface(ScriptInterpreterPythonImpl &interpreter);
29 llvm::Expected<StructuredData::GenericSP>
30 CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,
31 StructuredData::DictionarySP args_sp,
32 StructuredData::Generic *script_obj =
nullptr)
override;
34 llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods()
const override {
35 return llvm::SmallVector<llvm::StringLiteral>({
"get_thread_info"});
38 StructuredData::DictionarySP CreateThread(
lldb::tid_t tid,
41 StructuredData::ArraySP GetThreadInfo()
override;
43 StructuredData::DictionarySP GetRegisterInfo()
override;
45 std::optional<std::string> GetRegisterContextForTID(
lldb::tid_t tid)
override;
47 static void Initialize();
49 static void Terminate();
51 static llvm::StringRef GetPluginNameStatic() {
52 return "OperatingSystemPythonInterface";
55 llvm::StringRef GetPluginName()
override {
return GetPluginNameStatic(); }
A class that represents a running process on the host machine.