LLDB mainline
|
#include <ScriptInterpreter.h>
Static Public Member Functions | |
static std::string | LanguageToString (lldb::ScriptLanguage language) |
static lldb::ScriptLanguage | StringToLanguage (const llvm::StringRef &string) |
Protected Attributes | |
Debugger & | m_debugger |
lldb::ScriptLanguage | m_script_lang |
Definition at line 137 of file ScriptInterpreter.h.
Definition at line 139 of file ScriptInterpreter.h.
ScriptInterpreter::ScriptInterpreter | ( | Debugger & | debugger, |
lldb::ScriptLanguage | script_lang | ||
) |
Definition at line 30 of file ScriptInterpreter.cpp.
|
overridedefault |
|
virtual |
Definition at line 172 of file ScriptInterpreter.cpp.
|
inlinevirtual |
Definition at line 356 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 514 of file ScriptInterpreter.h.
Referenced by CommandObjectFrameRecognizerAdd::DoExecute(), and CommandObjectTypeFilterAdd::CommandOptions::OptionParsingStarting().
|
inlinevirtual |
Definition at line 351 of file ScriptInterpreter.h.
|
virtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 34 of file ScriptInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError().
|
virtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 41 of file ScriptInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError().
|
inlinevirtual |
Definition at line 240 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedStackFrameRecognizer::ScriptedStackFrameRecognizer().
|
inlinevirtual |
Definition at line 553 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 235 of file ScriptInterpreter.h.
Referenced by CommandObjectCommandsScriptAdd::DoExecute().
|
inlinevirtual |
Definition at line 256 of file ScriptInterpreter.h.
Referenced by lldb_private::BreakpointResolverScripted::CreateImplementationIfNeeded().
|
inlinevirtual |
Definition at line 540 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedProcess::ScriptedProcess().
|
inlinevirtual |
Definition at line 561 of file ScriptInterpreter.h.
Referenced by lldb_private::Target::StopHookScripted::SetScriptCallback().
|
inlinevirtual |
Definition at line 544 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 549 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedThreadPlan::ScriptedThreadPlan().
|
inlinevirtual |
Definition at line 566 of file ScriptInterpreter.h.
Referenced by lldb::SBStructuredData::SBStructuredData().
|
inlinevirtual |
Definition at line 229 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedSyntheticChildren::FrontEnd::FrontEnd().
|
pure virtual |
Implemented in lldb_private::ScriptInterpreterLua, and lldb_private::ScriptInterpreterNone.
Referenced by CommandObjectScriptingRun::DoExecute().
|
inlinevirtual |
Definition at line 177 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
|
pure virtual |
Implemented in lldb_private::ScriptInterpreterLua, and lldb_private::ScriptInterpreterNone.
Referenced by CommandObjectScriptingRun::DoExecute().
|
inlinevirtual |
Definition at line 171 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 184 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 346 of file ScriptInterpreter.h.
Referenced by lldb_private::TypeMatcher::Matches().
|
inlinevirtual |
Definition at line 188 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 286 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 213 of file ScriptInterpreter.h.
Referenced by CommandObjectCommandsScriptAdd::IOHandlerInputComplete().
|
inlinevirtual |
Definition at line 201 of file ScriptInterpreter.h.
Referenced by lldb::SBTypeCategory::AddTypeSummary(), and CommandObjectTypeSummaryAdd::IOHandlerInputComplete().
|
inlinevirtual |
Definition at line 207 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 223 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 218 of file ScriptInterpreter.h.
Referenced by lldb::SBTypeCategory::AddTypeSynthetic(), and CommandObjectTypeSynthAdd::IOHandlerInputComplete().
|
inlinevirtual |
Definition at line 195 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 488 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 362 of file ScriptInterpreter.h.
lldb::DataExtractorSP ScriptInterpreter::GetDataExtractorFromSBData | ( | const lldb::SBData & | data | ) | const |
Definition at line 76 of file ScriptInterpreter.cpp.
References lldb::SBData::m_opaque_sp.
|
inlinevirtual |
Definition at line 470 of file ScriptInterpreter.h.
Referenced by CommandObjectPythonFunction::GetHelpLong().
|
inlinevirtual |
Definition at line 281 of file ScriptInterpreter.h.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::ParsePythonTargetDefinition().
|
inlinevirtual |
Definition at line 504 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 367 of file ScriptInterpreter.h.
References UINT32_MAX.
|
virtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 47 of file ScriptInterpreter.cpp.
Referenced by lldb::SBDebugger::GetScriptInterpreterInfo().
|
inline |
Definition at line 538 of file ScriptInterpreter.h.
References m_script_lang.
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData().
|
inlinevirtual |
Definition at line 508 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectRaw::GetHelpLong(), and CommandObjectScriptingObjectParsed::GetHelpLong().
|
inlinevirtual |
Definition at line 529 of file ScriptInterpreter.h.
lldb::ProcessAttachInfoSP ScriptInterpreter::GetOpaqueTypeFromSBAttachInfo | ( | const lldb::SBAttachInfo & | attach_info | ) | const |
Definition at line 85 of file ScriptInterpreter.cpp.
References lldb::SBAttachInfo::m_opaque_sp.
lldb::BreakpointSP ScriptInterpreter::GetOpaqueTypeFromSBBreakpoint | ( | const lldb::SBBreakpoint & | breakpoint | ) | const |
Definition at line 80 of file ScriptInterpreter.cpp.
References lldb::SBBreakpoint::m_opaque_wp.
Event * ScriptInterpreter::GetOpaqueTypeFromSBEvent | ( | const lldb::SBEvent & | event | ) | const |
Definition at line 105 of file ScriptInterpreter.cpp.
lldb::ExecutionContextRefSP ScriptInterpreter::GetOpaqueTypeFromSBExecutionContext | ( | const lldb::SBExecutionContext & | exe_ctx | ) | const |
Definition at line 129 of file ScriptInterpreter.cpp.
References lldb::SBExecutionContext::m_exe_ctx_sp.
lldb::ProcessLaunchInfoSP ScriptInterpreter::GetOpaqueTypeFromSBLaunchInfo | ( | const lldb::SBLaunchInfo & | launch_info | ) | const |
Definition at line 90 of file ScriptInterpreter.cpp.
References lldb::SBLaunchInfo::m_opaque_sp.
std::optional< MemoryRegionInfo > ScriptInterpreter::GetOpaqueTypeFromSBMemoryRegionInfo | ( | const lldb::SBMemoryRegionInfo & | mem_region | ) | const |
Definition at line 121 of file ScriptInterpreter.cpp.
References lldb::SBMemoryRegionInfo::m_opaque_up.
lldb::StreamSP ScriptInterpreter::GetOpaqueTypeFromSBStream | ( | const lldb::SBStream & | stream | ) | const |
Definition at line 109 of file ScriptInterpreter.cpp.
References lldb::SBStream::m_opaque_up.
|
inlinevirtual |
Definition at line 483 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 244 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedStackFrameRecognizer::RecognizeFrame().
|
inlinevirtual |
Definition at line 418 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectRaw::GetRepeatCommand(), and CommandObjectScriptingObjectParsed::GetRepeatCommand().
|
inlinevirtual |
Definition at line 557 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 335 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptSummaryFormat::FormatObject().
const char * lldb_private::ScriptInterpreter::GetScriptInterpreterPtyName | ( | ) |
|
inlinevirtual |
Definition at line 476 of file ScriptInterpreter.h.
Referenced by lldb_private::BreakpointResolverScripted::GetDescription(), CommandObjectScriptingObjectRaw::GetHelp(), and CommandObjectScriptingObjectParsed::GetHelp().
Status ScriptInterpreter::GetStatusFromSBError | ( | const lldb::SBError & | error | ) | const |
Definition at line 97 of file ScriptInterpreter.cpp.
References error().
|
inlinevirtual |
Definition at line 388 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 383 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 424 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::HandleArgumentCompletion().
|
inlinevirtual |
Definition at line 431 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandOptions::HandleOptionArgumentCompletion().
|
inlinevirtual |
Definition at line 163 of file ScriptInterpreter.h.
Referenced by lldb_private::CommandInterpreter::IOHandlerInterrupt().
|
inlinevirtual |
Definition at line 522 of file ScriptInterpreter.h.
Referenced by lldb_private::PlatformDarwin::LocateExecutableScriptingResources().
|
static |
Definition at line 61 of file ScriptInterpreter.cpp.
References lldb::eScriptLanguageLua, lldb::eScriptLanguageNone, lldb::eScriptLanguagePython, and lldb::eScriptLanguageUnknown.
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData(), CommandObjectScriptingExtensionList::DoExecute(), lldb_private::BreakpointOptions::CommandBaton::GetDescription(), lldb_private::BreakpointOptions::CommandData::SerializeToStructuredData(), and StringToLanguage().
|
inlinevirtual |
Definition at line 276 of file ScriptInterpreter.h.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::ParsePythonTargetDefinition().
|
virtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 51 of file ScriptInterpreter.cpp.
References error(), and lldb_private::Status::FromErrorString().
Referenced by lldb_private::Module::LoadScriptingResourceInTarget().
|
inlinevirtual |
Definition at line 377 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 498 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandOptions::OptionParsingStarting().
|
inlinevirtual |
Definition at line 393 of file ScriptInterpreter.h.
Referenced by CommandObjectPythonFunction::DoExecute(), and CommandObjectScriptingObjectRaw::DoExecute().
|
inlinevirtual |
Definition at line 401 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 409 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::DoExecute().
|
inlinevirtual |
Definition at line 437 of file ScriptInterpreter.h.
References error(), and lldb_private::Status::FromErrorString().
Referenced by RunScriptFormatKeyword().
|
inlinevirtual |
Definition at line 456 of file ScriptInterpreter.h.
References error(), and lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 450 of file ScriptInterpreter.h.
References error(), and lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 444 of file ScriptInterpreter.h.
References error(), and lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 463 of file ScriptInterpreter.h.
References error(), and lldb_private::Status::FromErrorString().
|
inlinevirtual |
Definition at line 263 of file ScriptInterpreter.h.
Referenced by lldb_private::BreakpointResolverScripted::SearchCallback().
|
inlinevirtual |
Definition at line 270 of file ScriptInterpreter.h.
References lldb::eSearchDepthModule.
Referenced by lldb_private::BreakpointResolverScripted::GetDepth().
|
inlinevirtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 305 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
|
inlinevirtual |
This one is for deserialization:
Definition at line 312 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
Status ScriptInterpreter::SetBreakpointCommandCallback | ( | std::vector< std::reference_wrapper< BreakpointOptions > > & | bp_options_vec, |
const char * | callback_text | ||
) |
Set the specified text as the callback for the breakpoint.
Definition at line 145 of file ScriptInterpreter.cpp.
References error(), and SetBreakpointCommandCallback().
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData(), and SetBreakpointCommandCallback().
|
inlinevirtual |
Set a script function as the callback for the breakpoint.
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 324 of file ScriptInterpreter.h.
References lldb_private::Status::FromErrorString().
Status ScriptInterpreter::SetBreakpointCommandCallbackFunction | ( | std::vector< std::reference_wrapper< BreakpointOptions > > & | bp_options_vec, |
const char * | function_name, | ||
StructuredData::ObjectSP | extra_args_sp | ||
) |
Definition at line 158 of file ScriptInterpreter.cpp.
References error(), and SetBreakpointCommandCallbackFunction().
Referenced by SetBreakpointCommandCallbackFunction().
|
inlinevirtual |
Definition at line 492 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandOptions::SetOptionValue().
|
inlinevirtual |
Set a one-liner as the callback for the watchpoint.
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 331 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 250 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedStackFrameRecognizer::RecognizeFrame().
|
static |
Definition at line 135 of file ScriptInterpreter.cpp.
References lldb::eScriptLanguageLua, lldb::eScriptLanguageNone, lldb::eScriptLanguagePython, lldb::eScriptLanguageUnknown, and LanguageToString().
Referenced by lldb_private::BreakpointOptions::CommandData::CreateFromStructuredData().
|
inlinevirtual |
Definition at line 373 of file ScriptInterpreter.h.
|
protected |
Definition at line 595 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptInterpreterLua::CollectDataForBreakpointCommandCallback(), lldb_private::ScriptInterpreterLua::CollectDataForWatchpointCommandCallback(), lldb_private::ScriptInterpreterLua::ExecuteInterpreterLoop(), lldb_private::ScriptInterpreterNone::ExecuteInterpreterLoop(), lldb_private::ScriptInterpreterLua::ExecuteOneLine(), and lldb_private::ScriptInterpreterNone::ExecuteOneLine().
|
protected |
Definition at line 596 of file ScriptInterpreter.h.
Referenced by GetLanguage().