9#include "lldb/Host/Config.h"
31llvm::Expected<StructuredData::GenericSP>
36 std::make_shared<ExecutionContextRef>(exe_ctx);
39 exe_ctx_ref_sp, sd_impl);
84 return obj->GetStringValue().str();
87std::optional<std::string>
96 return obj->GetStringValue().str();
107 return obj->GetBooleanValue();
118 return obj->GetBooleanValue();
129 return obj->GetBooleanValue();
152 return obj->GetAsString()->GetValue().str();
169 llvm::StringRef expr, uint32_t options,
Status &status) {
172 dispatch_error, expr.data(), options,
175 if (dispatch_error.
Fail()) {
177 LLVM_PRETTY_FUNCTION, dispatch_error.
AsCString(), dispatch_error);
static llvm::raw_ostream & error(Stream &strm)
ScriptInterpreterPythonImpl::Locker Locker
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
std::optional< std::string > GetRegisterContext() override
lldb::user_id_t GetID() override
lldb::addr_t GetPC() override
lldb::ValueObjectListSP GetVariables() override
std::optional< std::string > GetDisplayFunctionName() override
std::optional< SymbolContext > GetSymbolContext() override
StructuredData::DictionarySP GetRegisterInfo() override
bool IsInlined() override
lldb::ValueObjectSP GetValueObjectForVariableExpression(llvm::StringRef expr, uint32_t options, Status &status) override
std::optional< std::string > GetFunctionName() override
bool IsArtificial() override
llvm::Expected< StructuredData::GenericSP > CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx, StructuredData::DictionarySP args_sp, StructuredData::Generic *script_obj=nullptr) override
ScriptedFramePythonInterface(ScriptInterpreterPythonImpl &interpreter)
static Ret ErrorWithMessage(llvm::StringRef caller_name, llvm::StringRef error_msg, Status &error, LLDBLog log_category=LLDBLog::Process)
static bool CheckStructuredDataObject(llvm::StringRef caller, T obj, Status &error)
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)
bool Fail() const
Test for error condition.
const char * AsCString(const char *default_error_str="unknown error") const
Get the error string associated with the current error.
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
#define LLDB_INVALID_ADDRESS
#define LLDB_INVALID_FRAME_ID
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
std::shared_ptr< lldb_private::ValueObjectList > ValueObjectListSP
std::shared_ptr< lldb_private::ExecutionContextRef > ExecutionContextRefSP