32llvm::Expected<StructuredData::GenericSP>
45 "create_thread",
error, tid, context);
70std::optional<std::string>
79 return obj->GetAsString()->GetValue().str();
89 return obj->GetAsBoolean()->GetValue();
93 const std::vector<llvm::StringRef> ci_usages = {
94 "settings set target.process.python-os-plugin-path <script-path>",
95 "settings set process.experimental.os-plugin-reports-all-threads [0/1]"};
96 const std::vector<llvm::StringRef> api_usages = {};
static llvm::raw_ostream & error(Stream &strm)
ScriptInterpreterPythonImpl::Locker Locker
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
const lldb::ProcessSP & GetProcessSP() const
Get accessor to get the process shared pointer.
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx, StructuredData::DictionarySP args_sp, StructuredData::Generic *script_obj=nullptr) override
StructuredData::DictionarySP GetRegisterInfo() override
StructuredData::ArraySP GetThreadInfo() override
std::optional< std::string > GetRegisterContextForTID(lldb::tid_t tid) override
std::optional< bool > DoesPluginReportAllThreads() override
OperatingSystemPythonInterface(ScriptInterpreterPythonImpl &interpreter)
static llvm::StringRef GetPluginNameStatic()
StructuredData::DictionarySP CreateThread(lldb::tid_t tid, lldb::addr_t context) override
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
static bool CheckStructuredDataObject(llvm::StringRef caller, T obj, Status &error)
static bool CreateInstance(lldb::ScriptLanguage language, ScriptedInterfaceUsages usages)
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, StructuredData::Generic *script_obj, Args... args)
T Dispatch(llvm::StringRef method_name, Status &error, Args &&...args)
StructuredData::DictionarySP GetRegisterInfo() override
ScriptedThreadPythonInterface(ScriptInterpreterPythonImpl &interpreter)
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
std::shared_ptr< Array > ArraySP
A class that represents a running process on the host machine.