1 //===-- ScriptedThreadPythonInterface.h ------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDTHREADPYTHONINTERFACE_H 10 #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDTHREADPYTHONINTERFACE_H 11 12 #include "lldb/Host/Config.h" 13 14 #if LLDB_ENABLE_PYTHON 15 16 #include "ScriptedPythonInterface.h" 17 #include "lldb/Interpreter/ScriptedProcessInterface.h" 18 19 namespace lldb_private { 20 class ScriptedThreadPythonInterface : public ScriptedThreadInterface, 21 public ScriptedPythonInterface { 22 public: 23 ScriptedThreadPythonInterface(ScriptInterpreterPythonImpl &interpreter); 24 25 StructuredData::GenericSP 26 CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx, 27 StructuredData::DictionarySP args_sp, 28 StructuredData::Generic *script_obj = nullptr) override; 29 30 lldb::tid_t GetThreadID() override; 31 32 llvm::Optional<std::string> GetName() override; 33 34 lldb::StateType GetState() override; 35 36 llvm::Optional<std::string> GetQueue() override; 37 38 StructuredData::DictionarySP GetStopReason() override; 39 40 StructuredData::ArraySP GetStackFrames() override; 41 42 StructuredData::DictionarySP GetRegisterInfo() override; 43 44 llvm::Optional<std::string> GetRegisterContext() override; 45 }; 46 } // namespace lldb_private 47 48 #endif // LLDB_ENABLE_PYTHON 49 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDTHREADPYTHONINTERFACE_H 50