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 386 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 530 of file ScriptInterpreter.h.
Referenced by CommandObjectFrameRecognizerAdd::DoExecute(), and CommandObjectTypeFilterAdd::CommandOptions::OptionParsingStarting().
|
inlinevirtual |
Definition at line 381 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 569 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 240 of file ScriptInterpreter.h.
Referenced by CommandObjectCommandsScriptAdd::DoExecute().
|
inlinevirtual |
Definition at line 261 of file ScriptInterpreter.h.
Referenced by lldb_private::BreakpointResolverScripted::CreateImplementationIfNeeded().
|
inlinevirtual |
Definition at line 556 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedProcess::ScriptedProcess().
|
inlinevirtual |
Definition at line 281 of file ScriptInterpreter.h.
References error().
Referenced by lldb_private::Target::StopHookScripted::SetScriptCallback().
|
inlinevirtual |
Definition at line 560 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 565 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedThreadPlan::ScriptedThreadPlan().
|
inlinevirtual |
Definition at line 578 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 376 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 308 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 504 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 392 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 486 of file ScriptInterpreter.h.
Referenced by CommandObjectPythonFunction::GetHelpLong().
|
inlinevirtual |
Definition at line 303 of file ScriptInterpreter.h.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::ParsePythonTargetDefinition().
|
inlinevirtual |
Definition at line 520 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed().
|
inlinevirtual |
Definition at line 397 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 554 of file ScriptInterpreter.h.
References m_script_lang.
Referenced by lldb_private::BreakpointOptions::CreateFromStructuredData().
|
inlinevirtual |
Definition at line 524 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectRaw::GetHelpLong(), and CommandObjectScriptingObjectParsed::GetHelpLong().
|
inlinevirtual |
Definition at line 545 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 499 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 448 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectRaw::GetRepeatCommand(), and CommandObjectScriptingObjectParsed::GetRepeatCommand().
|
inlinevirtual |
Definition at line 573 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 365 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptSummaryFormat::FormatObject().
const char * lldb_private::ScriptInterpreter::GetScriptInterpreterPtyName | ( | ) |
|
inlinevirtual |
Definition at line 492 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 418 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 413 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 162 of file ScriptInterpreter.h.
Referenced by lldb_private::CommandInterpreter::IOHandlerInterrupt().
|
inlinevirtual |
Definition at line 538 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 298 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 407 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 514 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::CommandOptions::OptionParsingStarting().
|
inlinevirtual |
Definition at line 423 of file ScriptInterpreter.h.
Referenced by CommandObjectPythonFunction::DoExecute(), and CommandObjectScriptingObjectRaw::DoExecute().
|
inlinevirtual |
Definition at line 431 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 439 of file ScriptInterpreter.h.
Referenced by CommandObjectScriptingObjectParsed::DoExecute().
|
inlinevirtual |
Definition at line 453 of file ScriptInterpreter.h.
References error().
Referenced by RunScriptFormatKeyword().
|
inlinevirtual |
Definition at line 472 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 466 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 460 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 479 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
Definition at line 268 of file ScriptInterpreter.h.
Referenced by lldb_private::BreakpointResolverScripted::SearchCallback().
|
inlinevirtual |
Definition at line 275 of file ScriptInterpreter.h.
References lldb::eSearchDepthModule.
Referenced by lldb_private::BreakpointResolverScripted::GetDepth().
|
inlinevirtual |
Definition at line 291 of file ScriptInterpreter.h.
Referenced by lldb_private::Target::StopHookScripted::HandleStop().
|
inlinevirtual |
Reimplemented in lldb_private::ScriptInterpreterLua.
Definition at line 329 of file ScriptInterpreter.h.
References error().
|
inlinevirtual |
This one is for deserialization:
Definition at line 338 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 352 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 508 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 361 of file ScriptInterpreter.h.
|
inlinevirtual |
Definition at line 255 of file ScriptInterpreter.h.
Referenced by lldb_private::ScriptedStackFrameRecognizer::RecognizeFrame().
|
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 403 of file ScriptInterpreter.h.
|
protected |
Definition at line 604 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 605 of file ScriptInterpreter.h.
Referenced by GetLanguage().