Path: blob/main/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h
39688 views
//===-- ScriptedThreadPlanPythonInterface.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_SCRIPTEDTHREADPLANPYTHONINTERFACE_H9#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPLANPYTHONINTERFACE_H1011#include "lldb/Host/Config.h"1213#if LLDB_ENABLE_PYTHON1415#include "ScriptedPythonInterface.h"16#include "lldb/Interpreter/Interfaces/ScriptedThreadPlanInterface.h"17#include <optional>1819namespace lldb_private {20class ScriptedThreadPlanPythonInterface : public ScriptedThreadPlanInterface,21public ScriptedPythonInterface {22public:23ScriptedThreadPlanPythonInterface(ScriptInterpreterPythonImpl &interpreter);2425llvm::Expected<StructuredData::GenericSP>26CreatePluginObject(const llvm::StringRef class_name,27lldb::ThreadPlanSP thread_plan_sp,28const StructuredDataImpl &args_sp) override;2930llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods() const override {31return {};32}3334llvm::Expected<bool> ExplainsStop(Event *event) override;3536llvm::Expected<bool> ShouldStop(Event *event) override;3738llvm::Expected<bool> IsStale() override;3940lldb::StateType GetRunState() override;4142llvm::Error GetStopDescription(lldb::StreamSP &stream) override;43};44} // namespace lldb_private4546#endif // LLDB_ENABLE_PYTHON47#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPLANPYTHONINTERFACE_H484950