Path: blob/main/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/OperatingSystemPythonInterface.h
39688 views
//===-- OperatingSystemPythonInterface.h ------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H9#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H1011#include "lldb/Host/Config.h"1213#if LLDB_ENABLE_PYTHON1415#include "ScriptedThreadPythonInterface.h"16#include "lldb/Interpreter/Interfaces/OperatingSystemInterface.h"17#include <optional>1819namespace lldb_private {20class OperatingSystemPythonInterface21: virtual public OperatingSystemInterface,22virtual public ScriptedThreadPythonInterface {23public:24OperatingSystemPythonInterface(ScriptInterpreterPythonImpl &interpreter);2526llvm::Expected<StructuredData::GenericSP>27CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,28StructuredData::DictionarySP args_sp,29StructuredData::Generic *script_obj = nullptr) override;3031llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods() const override {32return llvm::SmallVector<llvm::StringLiteral>({"get_thread_info"});33}3435StructuredData::DictionarySP CreateThread(lldb::tid_t tid,36lldb::addr_t context) override;3738StructuredData::ArraySP GetThreadInfo() override;3940StructuredData::DictionarySP GetRegisterInfo() override;4142std::optional<std::string> GetRegisterContextForTID(lldb::tid_t tid) override;43};44} // namespace lldb_private4546#endif // LLDB_ENABLE_PYTHON47#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_OPERATINGSYSTEMPYTHONINTERFACE_H484950