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) override; 28 29 lldb::tid_t GetThreadID() override; 30 31 llvm::Optional<std::string> GetName() override; 32 33 lldb::StateType GetState() override; 34 35 llvm::Optional<std::string> GetQueue() override; 36 37 StructuredData::DictionarySP GetStopReason() override; 38 39 StructuredData::ArraySP GetStackFrames() override; 40 41 StructuredData::DictionarySP GetRegisterInfo() override; 42 43 llvm::Optional<std::string> GetRegisterContext() override; 44 }; 45 } // namespace lldb_private 46 47 #endif // LLDB_ENABLE_PYTHON 48 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDTHREADPYTHONINTERFACE_H 49