Path: blob/main/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPythonInterface.h
39688 views
//===-- ScriptedThreadPythonInterface.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_SCRIPTEDTHREADPYTHONINTERFACE_H9#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H1011#include "lldb/Host/Config.h"1213#if LLDB_ENABLE_PYTHON1415#include "ScriptedPythonInterface.h"16#include "lldb/Interpreter/Interfaces/ScriptedThreadInterface.h"17#include <optional>1819namespace lldb_private {20class ScriptedThreadPythonInterface : public ScriptedThreadInterface,21public ScriptedPythonInterface {22public:23ScriptedThreadPythonInterface(ScriptInterpreterPythonImpl &interpreter);2425llvm::Expected<StructuredData::GenericSP>26CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,27StructuredData::DictionarySP args_sp,28StructuredData::Generic *script_obj = nullptr) override;2930llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods() const override {31return llvm::SmallVector<llvm::StringLiteral>(32{"get_stop_reason", "get_register_context"});33}3435lldb::tid_t GetThreadID() override;3637std::optional<std::string> GetName() override;3839lldb::StateType GetState() override;4041std::optional<std::string> GetQueue() override;4243StructuredData::DictionarySP GetStopReason() override;4445StructuredData::ArraySP GetStackFrames() override;4647StructuredData::DictionarySP GetRegisterInfo() override;4849std::optional<std::string> GetRegisterContext() override;5051StructuredData::ArraySP GetExtendedInfo() override;52};53} // namespace lldb_private5455#endif // LLDB_ENABLE_PYTHON56#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H575859