30llvm::Expected<StructuredData::GenericSP>
35 std::make_shared<ExecutionContextRef>(exe_ctx);
38 scripted_metadata, script_obj, exe_ctx_ref_sp, args_sp);
46 if (!dict_sp || !dict_sp->IsValid() ||
error.Fail()) {
49 llvm::Twine(
"Null or invalid object (" +
50 llvm::Twine(
error.AsCString()) + llvm::Twine(
")."))
64 if (!dict_sp || !dict_sp->IsValid() ||
error.Fail()) {
67 llvm::Twine(
"Null or invalid object (" +
68 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)
ScriptedPythonInterface(ScriptInterpreterPythonImpl &interpreter)
T Dispatch(llvm::StringRef method_name, Status &error, Args &&...args)
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(const ScriptedMetadata &scripted_metadata, StructuredData::Generic *script_obj, 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