33llvm::Expected<StructuredData::GenericSP>
38 std::make_shared<ExecutionContextRef>(exe_ctx);
41 exe_ctx_ref_sp, sd_impl);
49 if (!dict_sp || !dict_sp->IsValid() ||
error.Fail()) {
52 llvm::Twine(
"Null or invalid object (" +
53 llvm::Twine(
error.AsCString()) + llvm::Twine(
")."))
67 if (!dict_sp || !dict_sp->IsValid() ||
error.Fail()) {
70 llvm::Twine(
"Null or invalid object (" +
71 llvm::Twine(
error.AsCString()) + llvm::Twine(
")."))
static llvm::raw_ostream & error(Stream &strm)
ScriptInterpreterPythonImpl::Locker Locker
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
static Ret ErrorWithMessage(llvm::StringRef caller_name, llvm::StringRef error_msg, Status &error, LLDBLog log_category=LLDBLog::Process)
static bool CreateInstance(lldb::ScriptLanguage language, ScriptedInterfaceUsages usages)
Status GetStatusFromMethod(llvm::StringRef method_name, Args &&...args)
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, StructuredData::Generic *script_obj, Args... args)
ScriptedPythonInterface(ScriptInterpreterPythonImpl &interpreter)
T Dispatch(llvm::StringRef method_name, Status &error, Args &&...args)
std::shared_ptr< Dictionary > DictionarySP
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ProcessAttachInfo > ProcessAttachInfoSP
std::shared_ptr< lldb_private::ProcessLaunchInfo > ProcessLaunchInfoSP
std::shared_ptr< lldb_private::ExecutionContextRef > ExecutionContextRefSP