9#include "lldb/Host/Config.h"
27using Locker = ScriptInterpreterPythonImpl::Locker;
29ScriptedThreadPythonInterface::ScriptedThreadPythonInterface(
30 ScriptInterpreterPythonImpl &interpreter)
33llvm::Expected<StructuredData::GenericSP>
34ScriptedThreadPythonInterface::CreatePluginObject(
38 std::make_shared<ExecutionContextRef>(exe_ctx);
40 return ScriptedPythonInterface::CreatePluginObject(class_name, script_obj,
41 exe_ctx_ref_sp, sd_impl);
44lldb::tid_t ScriptedThreadPythonInterface::GetThreadID() {
55std::optional<std::string> ScriptedThreadPythonInterface::GetName() {
63 return obj->GetStringValue().str();
74 return static_cast<StateType
>(obj->GetUnsignedIntegerValue(
eStateInvalid));
77std::optional<std::string> ScriptedThreadPythonInterface::GetQueue() {
85 return obj->GetStringValue().str();
91 Dispatch<StructuredData::DictionarySP>(
"get_stop_reason",
error);
103 Dispatch<StructuredData::ArraySP>(
"get_stackframes",
error);
115 Dispatch<StructuredData::DictionarySP>(
"get_register_info",
error);
124std::optional<std::string> ScriptedThreadPythonInterface::GetRegisterContext() {
132 return obj->GetAsString()->GetValue().str();
138 Dispatch<StructuredData::ArraySP>(
"get_extended_info",
error);
147std::optional<std::string>
148ScriptedThreadPythonInterface::GetScriptedFramePluginName() {
156 return obj->GetStringValue().str();
160ScriptedThreadPythonInterface::CreateScriptedFrameInterface() {
161 return m_interpreter.CreateScriptedFrameInterface();
static llvm::raw_ostream & error(Stream &strm)
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
static bool CheckStructuredDataObject(llvm::StringRef caller, T obj, Status &error)
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
std::shared_ptr< Array > ArraySP
#define LLDB_INVALID_THREAD_ID
A class that represents a running process on the host machine.
StateType
Process and Thread States.
std::shared_ptr< lldb_private::ScriptedFrameInterface > ScriptedFrameInterfaceSP
std::shared_ptr< lldb_private::ExecutionContextRef > ExecutionContextRefSP