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 136 of file ScriptInterpreter.h.
Definition at line 138 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 166 of file ScriptInterpreter.cpp.
|
inlinevirtual |
Definition at line 381 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 525 of file ScriptInterpreter.h.
Referenced by CommandObjectFrameRecognizerAdd::DoExecute(), and CommandObjectTypeFilterAdd::CommandOptions::OptionParsingStarting().
|
inlinevirtual |
Definition at line 376 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 245 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedStackFrameRecognizer::ScriptedStackFrameRecognizer().
|
inlinevirtual |
Definition at line 564 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 240 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 551 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedProcess::ScriptedProcess().
|
inlinevirtual |
Definition at line 276 of file ScriptInterpreter.h.
References error().
Referenced by lldb_private::Target::StopHookScripted::SetScriptCallback().
|
inlinevirtual |
Definition at line 555 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 560 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedThreadPlan::ScriptedThreadPlan().
|
inlinevirtual |
Definition at line 573 of file ScriptInterpreter.h.
Referenced by lldb::SBStructuredData::SBStructuredData().
|
inlinevirtual |
Definition at line 234 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 176 of file ScriptInterpreter.h.
References error().
|
pure virtual |
Implemented in lldb_private::ScriptInterpreterLua, and lldb_private::ScriptInterpreterNone.
Referenced by CommandObjectScriptingRun::DoExecute().
|
inlinevirtual |
Definition at line 170 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 185 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 371 of file ScriptInterpreter.h.
Referenced by lldb_private::TypeMatcher::Matches().
|
inlinevirtual |
Definition at line 191 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 303 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 218 of file ScriptInterpreter.h.
Referenced by CommandObjectCommandsScriptAdd::IOHandlerInputComplete().
|
inlinevirtual |
Definition at line 206 of file ScriptInterpreter.h.
Referenced by lldb::SBTypeCategory::AddTypeSummary(), and CommandObjectTypeSummaryAdd::IOHandlerInputComplete().
|
inlinevirtual |
Definition at line 212 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 228 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 223 of file ScriptInterpreter.h.
Referenced by lldb::SBTypeCategory::AddTypeSynthetic(), and CommandObjectTypeSynthAdd::IOHandlerInputComplete().
|
inlinevirtual |
Definition at line 200 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 499 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 387 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 481 of file ScriptInterpreter.h.
Referenced by CommandObjectPythonFunction::GetHelpLong().
|
inlinevirtual |
Definition at line 298 of file ScriptInterpreter.h.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::ParsePythonTargetDefinition().
|
inlinevirtual |
Definition at line 515 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 392 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 549 of file ScriptInterpreter.h.
References m_script_lang.
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData().
|
inlinevirtual |
Definition at line 519 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectRaw::GetHelpLong(), and CommandObjectScriptingObjectParsed::GetHelpLong().
|
inlinevirtual |
Definition at line 540 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::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 494 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 249 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedStackFrameRecognizer::RecognizeFrame().
|
inlinevirtual |
Definition at line 443 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectRaw::GetRepeatCommand(), and CommandObjectScriptingObjectParsed::GetRepeatCommand().
|
inlinevirtual |
Definition at line 568 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 360 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptSummaryFormat::FormatObject().
const char * lldb_private::ScriptInterpreter::GetScriptInterpreterPtyName | ( | ) |
|
inlinevirtual |
Definition at line 487 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 413 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 408 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 162 of file ScriptInterpreter.h.
Referenced by lldb_private::CommandInterpreter::IOHandlerInterrupt().
|
inlinevirtual |
Definition at line 533 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 293 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().
Referenced by lldb_private::Module::LoadScriptingResourceInTarget().
|
inlinevirtual |
Definition at line 402 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 509 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandOptions::OptionParsingStarting().
|
inlinevirtual |
Definition at line 418 of file ScriptInterpreter.h.
Referenced by CommandObjectPythonFunction::DoExecute(), and CommandObjectScriptingObjectRaw::DoExecute().
|
inlinevirtual |
Definition at line 426 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 434 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::DoExecute().
|
inlinevirtual |
Definition at line 448 of file ScriptInterpreter.h.
References error().
Referenced by RunScriptFormatKeyword().
|
inlinevirtual |
Definition at line 467 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 461 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 455 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 474 of file ScriptInterpreter.h.
References error().
|
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 |
Definition at line 286 of file ScriptInterpreter.h.
Referenced by lldb_private::Target::StopHookScripted::HandleStop().
|
inlinevirtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 324 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
This one is for deserialization:
Definition at line 333 of file ScriptInterpreter.h.
References error().
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 139 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 347 of file ScriptInterpreter.h.
References error().
Status ScriptInterpreter::SetBreakpointCommandCallbackFunction | ( | std::vector< std::reference_wrapper< BreakpointOptions > > & | bp_options_vec, |
const char * | function_name, | ||
StructuredData::ObjectSP | extra_args_sp | ||
) |
Definition at line 152 of file ScriptInterpreter.cpp.
References error(), and SetBreakpointCommandCallbackFunction().
Referenced by SetBreakpointCommandCallbackFunction().
|
inlinevirtual |
Definition at line 503 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 356 of file ScriptInterpreter.h.
|
static |
Definition at line 129 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 398 of file ScriptInterpreter.h.
|
protected |
Definition at line 599 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 600 of file ScriptInterpreter.h.
Referenced by GetLanguage().