LLDB mainline
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
lldb_private::ScriptInterpreter Class Referenceabstract

#include <ScriptInterpreter.h>

Inheritance diagram for lldb_private::ScriptInterpreter:
Inheritance graph
[legend]

Public Types

enum  ScriptReturnType {
  eScriptReturnTypeCharPtr , eScriptReturnTypeBool , eScriptReturnTypeShortInt , eScriptReturnTypeShortIntUnsigned ,
  eScriptReturnTypeInt , eScriptReturnTypeIntUnsigned , eScriptReturnTypeLongInt , eScriptReturnTypeLongIntUnsigned ,
  eScriptReturnTypeLongLong , eScriptReturnTypeLongLongUnsigned , eScriptReturnTypeFloat , eScriptReturnTypeDouble ,
  eScriptReturnTypeChar , eScriptReturnTypeCharStrOrNone , eScriptReturnTypeOpaqueObject
}
 

Public Member Functions

 ScriptInterpreter (Debugger &debugger, lldb::ScriptLanguage script_lang)
 
virtual StructuredData::DictionarySP GetInterpreterInfo ()
 
 ~ScriptInterpreter () override=default
 
virtual bool Interrupt ()
 
virtual bool ExecuteOneLine (llvm::StringRef command, CommandReturnObject *result, const ExecuteScriptOptions &options=ExecuteScriptOptions())=0
 
virtual void ExecuteInterpreterLoop ()=0
 
virtual bool ExecuteOneLineWithReturn (llvm::StringRef in_string, ScriptReturnType return_type, void *ret_value, const ExecuteScriptOptions &options=ExecuteScriptOptions())
 
virtual Status ExecuteMultipleLines (const char *in_string, const ExecuteScriptOptions &options=ExecuteScriptOptions())
 
virtual Status ExportFunctionDefinitionToInterpreter (StringList &function_def)
 
virtual Status GenerateBreakpointCommandCallbackData (StringList &input, std::string &output, bool has_extra_args, bool is_callback)
 
virtual bool GenerateWatchpointCommandCallbackData (StringList &input, std::string &output, bool is_callback)
 
virtual bool GenerateTypeScriptFunction (const char *oneliner, std::string &output, const void *name_token=nullptr)
 
virtual bool GenerateTypeScriptFunction (StringList &input, std::string &output, const void *name_token=nullptr)
 
virtual bool GenerateScriptAliasFunction (StringList &input, std::string &output)
 
virtual bool GenerateTypeSynthClass (StringList &input, std::string &output, const void *name_token=nullptr)
 
virtual bool GenerateTypeSynthClass (const char *oneliner, std::string &output, const void *name_token=nullptr)
 
virtual StructuredData::ObjectSP CreateSyntheticScriptedProvider (const char *class_name, lldb::ValueObjectSP valobj)
 
virtual StructuredData::GenericSP CreateScriptCommandObject (const char *class_name)
 
virtual StructuredData::GenericSP CreateFrameRecognizer (const char *class_name)
 
virtual lldb::ValueObjectListSP GetRecognizedArguments (const StructuredData::ObjectSP &implementor, lldb::StackFrameSP frame_sp)
 
virtual bool ShouldHide (const StructuredData::ObjectSP &implementor, lldb::StackFrameSP frame_sp)
 
virtual StructuredData::GenericSP CreateScriptedBreakpointResolver (const char *class_name, const StructuredDataImpl &args_data, lldb::BreakpointSP &bkpt_sp)
 
virtual bool ScriptedBreakpointResolverSearchCallback (StructuredData::GenericSP implementor_sp, SymbolContext *sym_ctx)
 
virtual lldb::SearchDepth ScriptedBreakpointResolverSearchDepth (StructuredData::GenericSP implementor_sp)
 
virtual StructuredData::GenericSP CreateScriptedStopHook (lldb::TargetSP target_sp, const char *class_name, const StructuredDataImpl &args_data, Status &error)
 
virtual bool ScriptedStopHookHandleStop (StructuredData::GenericSP implementor_sp, ExecutionContext &exc_ctx, lldb::StreamSP stream_sp)
 
virtual StructuredData::ObjectSP LoadPluginModule (const FileSpec &file_spec, lldb_private::Status &error)
 
virtual StructuredData::DictionarySP GetDynamicSettings (StructuredData::ObjectSP plugin_module_sp, Target *target, const char *setting_name, lldb_private::Status &error)
 
virtual Status GenerateFunction (const char *signature, const StringList &input, bool is_callback)
 
virtual void CollectDataForBreakpointCommandCallback (std::vector< std::reference_wrapper< BreakpointOptions > > &options, CommandReturnObject &result)
 
virtual void CollectDataForWatchpointCommandCallback (WatchpointOptions *wp_options, CommandReturnObject &result)
 
Status SetBreakpointCommandCallback (std::vector< std::reference_wrapper< BreakpointOptions > > &bp_options_vec, const char *callback_text)
 Set the specified text as the callback for the breakpoint.
 
virtual Status SetBreakpointCommandCallback (BreakpointOptions &bp_options, const char *callback_text, bool is_callback)
 
virtual Status SetBreakpointCommandCallback (BreakpointOptions &bp_options, std::unique_ptr< BreakpointOptions::CommandData > &data_up)
 This one is for deserialization:
 
Status SetBreakpointCommandCallbackFunction (std::vector< std::reference_wrapper< BreakpointOptions > > &bp_options_vec, const char *function_name, StructuredData::ObjectSP extra_args_sp)
 
virtual Status SetBreakpointCommandCallbackFunction (BreakpointOptions &bp_options, const char *function_name, StructuredData::ObjectSP extra_args_sp)
 Set a script function as the callback for the breakpoint.
 
virtual void SetWatchpointCommandCallback (WatchpointOptions *wp_options, const char *user_input, bool is_callback)
 Set a one-liner as the callback for the watchpoint.
 
virtual bool GetScriptedSummary (const char *function_name, lldb::ValueObjectSP valobj, StructuredData::ObjectSP &callee_wrapper_sp, const TypeSummaryOptions &options, std::string &retval)
 
virtual bool FormatterCallbackFunction (const char *function_name, lldb::TypeImplSP type_impl_sp)
 
virtual void Clear ()
 
virtual size_t CalculateNumChildren (const StructuredData::ObjectSP &implementor, uint32_t max)
 
virtual lldb::ValueObjectSP GetChildAtIndex (const StructuredData::ObjectSP &implementor, uint32_t idx)
 
virtual int GetIndexOfChildWithName (const StructuredData::ObjectSP &implementor, const char *child_name)
 
virtual bool UpdateSynthProviderInstance (const StructuredData::ObjectSP &implementor)
 
virtual bool MightHaveChildrenSynthProviderInstance (const StructuredData::ObjectSP &implementor)
 
virtual lldb::ValueObjectSP GetSyntheticValue (const StructuredData::ObjectSP &implementor)
 
virtual ConstString GetSyntheticTypeName (const StructuredData::ObjectSP &implementor)
 
virtual bool RunScriptBasedCommand (const char *impl_function, llvm::StringRef args, ScriptedCommandSynchronicity synchronicity, lldb_private::CommandReturnObject &cmd_retobj, Status &error, const lldb_private::ExecutionContext &exe_ctx)
 
virtual bool RunScriptBasedCommand (StructuredData::GenericSP impl_obj_sp, llvm::StringRef args, ScriptedCommandSynchronicity synchronicity, lldb_private::CommandReturnObject &cmd_retobj, Status &error, const lldb_private::ExecutionContext &exe_ctx)
 
virtual bool RunScriptBasedParsedCommand (StructuredData::GenericSP impl_obj_sp, Args &args, ScriptedCommandSynchronicity synchronicity, lldb_private::CommandReturnObject &cmd_retobj, Status &error, const lldb_private::ExecutionContext &exe_ctx)
 
virtual std::optional< std::string > GetRepeatCommandForScriptedCommand (StructuredData::GenericSP impl_obj_sp, Args &args)
 
virtual bool RunScriptFormatKeyword (const char *impl_function, Process *process, std::string &output, Status &error)
 
virtual bool RunScriptFormatKeyword (const char *impl_function, Thread *thread, std::string &output, Status &error)
 
virtual bool RunScriptFormatKeyword (const char *impl_function, Target *target, std::string &output, Status &error)
 
virtual bool RunScriptFormatKeyword (const char *impl_function, StackFrame *frame, std::string &output, Status &error)
 
virtual bool RunScriptFormatKeyword (const char *impl_function, ValueObject *value, std::string &output, Status &error)
 
virtual bool GetDocumentationForItem (const char *item, std::string &dest)
 
virtual bool GetShortHelpForCommandObject (StructuredData::GenericSP cmd_obj_sp, std::string &dest)
 
virtual StructuredData::ObjectSP GetOptionsForCommandObject (StructuredData::GenericSP cmd_obj_sp)
 
virtual StructuredData::ObjectSP GetArgumentsForCommandObject (StructuredData::GenericSP cmd_obj_sp)
 
virtual bool SetOptionValueForCommandObject (StructuredData::GenericSP cmd_obj_sp, ExecutionContext *exe_ctx, llvm::StringRef long_option, llvm::StringRef value)
 
virtual void OptionParsingStartedForCommandObject (StructuredData::GenericSP cmd_obj_sp)
 
virtual uint32_t GetFlagsForCommandObject (StructuredData::GenericSP cmd_obj_sp)
 
virtual bool GetLongHelpForCommandObject (StructuredData::GenericSP cmd_obj_sp, std::string &dest)
 
virtual bool CheckObjectExists (const char *name)
 
virtual bool LoadScriptingModule (const char *filename, const LoadScriptOptions &options, lldb_private::Status &error, StructuredData::ObjectSP *module_sp=nullptr, FileSpec extra_search_dir={})
 
virtual bool IsReservedWord (const char *word)
 
virtual std::unique_ptr< ScriptInterpreterLockerAcquireInterpreterLock ()
 
const char * GetScriptInterpreterPtyName ()
 
virtual llvm::Expected< unsigned > GetMaxPositionalArgumentsForCallable (const llvm::StringRef &callable_name)
 
lldb::ScriptLanguage GetLanguage ()
 
virtual lldb::ScriptedProcessInterfaceUP CreateScriptedProcessInterface ()
 
virtual lldb::ScriptedThreadInterfaceSP CreateScriptedThreadInterface ()
 
virtual lldb::ScriptedThreadPlanInterfaceSP CreateScriptedThreadPlanInterface ()
 
virtual lldb::OperatingSystemInterfaceSP CreateOperatingSystemInterface ()
 
virtual lldb::ScriptedPlatformInterfaceUP GetScriptedPlatformInterface ()
 
virtual StructuredData::ObjectSP CreateStructuredDataFromScriptObject (ScriptObject obj)
 
lldb::DataExtractorSP GetDataExtractorFromSBData (const lldb::SBData &data) const
 
Status GetStatusFromSBError (const lldb::SBError &error) const
 
EventGetOpaqueTypeFromSBEvent (const lldb::SBEvent &event) const
 
lldb::StreamSP GetOpaqueTypeFromSBStream (const lldb::SBStream &stream) const
 
lldb::BreakpointSP GetOpaqueTypeFromSBBreakpoint (const lldb::SBBreakpoint &breakpoint) const
 
lldb::ProcessAttachInfoSP GetOpaqueTypeFromSBAttachInfo (const lldb::SBAttachInfo &attach_info) const
 
lldb::ProcessLaunchInfoSP GetOpaqueTypeFromSBLaunchInfo (const lldb::SBLaunchInfo &launch_info) const
 
std::optional< MemoryRegionInfoGetOpaqueTypeFromSBMemoryRegionInfo (const lldb::SBMemoryRegionInfo &mem_region) const
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
virtual llvm::StringRef GetPluginName ()=0
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

Static Public Member Functions

static std::string LanguageToString (lldb::ScriptLanguage language)
 
static lldb::ScriptLanguage StringToLanguage (const llvm::StringRef &string)
 

Protected Attributes

Debuggerm_debugger
 
lldb::ScriptLanguage m_script_lang
 

Detailed Description

Definition at line 136 of file ScriptInterpreter.h.

Member Enumeration Documentation

◆ ScriptReturnType

Enumerator
eScriptReturnTypeCharPtr 
eScriptReturnTypeBool 
eScriptReturnTypeShortInt 
eScriptReturnTypeShortIntUnsigned 
eScriptReturnTypeInt 
eScriptReturnTypeIntUnsigned 
eScriptReturnTypeLongInt 
eScriptReturnTypeLongIntUnsigned 
eScriptReturnTypeLongLong 
eScriptReturnTypeLongLongUnsigned 
eScriptReturnTypeFloat 
eScriptReturnTypeDouble 
eScriptReturnTypeChar 
eScriptReturnTypeCharStrOrNone 
eScriptReturnTypeOpaqueObject 

Definition at line 138 of file ScriptInterpreter.h.

Constructor & Destructor Documentation

◆ ScriptInterpreter()

ScriptInterpreter::ScriptInterpreter ( Debugger debugger,
lldb::ScriptLanguage  script_lang 
)

Definition at line 30 of file ScriptInterpreter.cpp.

◆ ~ScriptInterpreter()

lldb_private::ScriptInterpreter::~ScriptInterpreter ( )
overridedefault

Member Function Documentation

◆ AcquireInterpreterLock()

std::unique_ptr< ScriptInterpreterLocker > ScriptInterpreter::AcquireInterpreterLock ( )
virtual

Definition at line 166 of file ScriptInterpreter.cpp.

◆ CalculateNumChildren()

virtual size_t lldb_private::ScriptInterpreter::CalculateNumChildren ( const StructuredData::ObjectSP implementor,
uint32_t  max 
)
inlinevirtual

Definition at line 386 of file ScriptInterpreter.h.

◆ CheckObjectExists()

virtual bool lldb_private::ScriptInterpreter::CheckObjectExists ( const char *  name)
inlinevirtual

◆ Clear()

virtual void lldb_private::ScriptInterpreter::Clear ( )
inlinevirtual

Definition at line 381 of file ScriptInterpreter.h.

◆ CollectDataForBreakpointCommandCallback()

void ScriptInterpreter::CollectDataForBreakpointCommandCallback ( std::vector< std::reference_wrapper< BreakpointOptions > > &  options,
CommandReturnObject result 
)
virtual

◆ CollectDataForWatchpointCommandCallback()

void ScriptInterpreter::CollectDataForWatchpointCommandCallback ( WatchpointOptions wp_options,
CommandReturnObject result 
)
virtual

◆ CreateFrameRecognizer()

virtual StructuredData::GenericSP lldb_private::ScriptInterpreter::CreateFrameRecognizer ( const char *  class_name)
inlinevirtual

◆ CreateOperatingSystemInterface()

virtual lldb::OperatingSystemInterfaceSP lldb_private::ScriptInterpreter::CreateOperatingSystemInterface ( )
inlinevirtual

Definition at line 569 of file ScriptInterpreter.h.

◆ CreateScriptCommandObject()

virtual StructuredData::GenericSP lldb_private::ScriptInterpreter::CreateScriptCommandObject ( const char *  class_name)
inlinevirtual

Definition at line 240 of file ScriptInterpreter.h.

Referenced by CommandObjectCommandsScriptAdd::DoExecute().

◆ CreateScriptedBreakpointResolver()

virtual StructuredData::GenericSP lldb_private::ScriptInterpreter::CreateScriptedBreakpointResolver ( const char *  class_name,
const StructuredDataImpl args_data,
lldb::BreakpointSP bkpt_sp 
)
inlinevirtual

◆ CreateScriptedProcessInterface()

virtual lldb::ScriptedProcessInterfaceUP lldb_private::ScriptInterpreter::CreateScriptedProcessInterface ( )
inlinevirtual

Definition at line 556 of file ScriptInterpreter.h.

Referenced by lldb_private::ScriptedProcess::ScriptedProcess().

◆ CreateScriptedStopHook()

virtual StructuredData::GenericSP lldb_private::ScriptInterpreter::CreateScriptedStopHook ( lldb::TargetSP  target_sp,
const char *  class_name,
const StructuredDataImpl args_data,
Status error 
)
inlinevirtual

Definition at line 281 of file ScriptInterpreter.h.

References error().

Referenced by lldb_private::Target::StopHookScripted::SetScriptCallback().

◆ CreateScriptedThreadInterface()

virtual lldb::ScriptedThreadInterfaceSP lldb_private::ScriptInterpreter::CreateScriptedThreadInterface ( )
inlinevirtual

Definition at line 560 of file ScriptInterpreter.h.

◆ CreateScriptedThreadPlanInterface()

virtual lldb::ScriptedThreadPlanInterfaceSP lldb_private::ScriptInterpreter::CreateScriptedThreadPlanInterface ( )
inlinevirtual

◆ CreateStructuredDataFromScriptObject()

virtual StructuredData::ObjectSP lldb_private::ScriptInterpreter::CreateStructuredDataFromScriptObject ( ScriptObject  obj)
inlinevirtual

Definition at line 578 of file ScriptInterpreter.h.

Referenced by lldb::SBStructuredData::SBStructuredData().

◆ CreateSyntheticScriptedProvider()

virtual StructuredData::ObjectSP lldb_private::ScriptInterpreter::CreateSyntheticScriptedProvider ( const char *  class_name,
lldb::ValueObjectSP  valobj 
)
inlinevirtual

◆ ExecuteInterpreterLoop()

virtual void lldb_private::ScriptInterpreter::ExecuteInterpreterLoop ( )
pure virtual

◆ ExecuteMultipleLines()

virtual Status lldb_private::ScriptInterpreter::ExecuteMultipleLines ( const char *  in_string,
const ExecuteScriptOptions options = ExecuteScriptOptions() 
)
inlinevirtual

Definition at line 176 of file ScriptInterpreter.h.

References error().

◆ ExecuteOneLine()

virtual bool lldb_private::ScriptInterpreter::ExecuteOneLine ( llvm::StringRef  command,
CommandReturnObject result,
const ExecuteScriptOptions options = ExecuteScriptOptions() 
)
pure virtual

◆ ExecuteOneLineWithReturn()

virtual bool lldb_private::ScriptInterpreter::ExecuteOneLineWithReturn ( llvm::StringRef  in_string,
ScriptReturnType  return_type,
void *  ret_value,
const ExecuteScriptOptions options = ExecuteScriptOptions() 
)
inlinevirtual

Definition at line 170 of file ScriptInterpreter.h.

◆ ExportFunctionDefinitionToInterpreter()

virtual Status lldb_private::ScriptInterpreter::ExportFunctionDefinitionToInterpreter ( StringList function_def)
inlinevirtual

Definition at line 185 of file ScriptInterpreter.h.

References error().

◆ FormatterCallbackFunction()

virtual bool lldb_private::ScriptInterpreter::FormatterCallbackFunction ( const char *  function_name,
lldb::TypeImplSP  type_impl_sp 
)
inlinevirtual

Definition at line 376 of file ScriptInterpreter.h.

Referenced by lldb_private::TypeMatcher::Matches().

◆ GenerateBreakpointCommandCallbackData()

virtual Status lldb_private::ScriptInterpreter::GenerateBreakpointCommandCallbackData ( StringList input,
std::string &  output,
bool  has_extra_args,
bool  is_callback 
)
inlinevirtual

Definition at line 191 of file ScriptInterpreter.h.

References error().

◆ GenerateFunction()

virtual Status lldb_private::ScriptInterpreter::GenerateFunction ( const char *  signature,
const StringList input,
bool  is_callback 
)
inlinevirtual

Definition at line 308 of file ScriptInterpreter.h.

References error().

◆ GenerateScriptAliasFunction()

virtual bool lldb_private::ScriptInterpreter::GenerateScriptAliasFunction ( StringList input,
std::string &  output 
)
inlinevirtual

◆ GenerateTypeScriptFunction() [1/2]

virtual bool lldb_private::ScriptInterpreter::GenerateTypeScriptFunction ( const char *  oneliner,
std::string &  output,
const void *  name_token = nullptr 
)
inlinevirtual

◆ GenerateTypeScriptFunction() [2/2]

virtual bool lldb_private::ScriptInterpreter::GenerateTypeScriptFunction ( StringList input,
std::string &  output,
const void *  name_token = nullptr 
)
inlinevirtual

Definition at line 212 of file ScriptInterpreter.h.

◆ GenerateTypeSynthClass() [1/2]

virtual bool lldb_private::ScriptInterpreter::GenerateTypeSynthClass ( const char *  oneliner,
std::string &  output,
const void *  name_token = nullptr 
)
inlinevirtual

Definition at line 228 of file ScriptInterpreter.h.

◆ GenerateTypeSynthClass() [2/2]

virtual bool lldb_private::ScriptInterpreter::GenerateTypeSynthClass ( StringList input,
std::string &  output,
const void *  name_token = nullptr 
)
inlinevirtual

◆ GenerateWatchpointCommandCallbackData()

virtual bool lldb_private::ScriptInterpreter::GenerateWatchpointCommandCallbackData ( StringList input,
std::string &  output,
bool  is_callback 
)
inlinevirtual

Definition at line 200 of file ScriptInterpreter.h.

◆ GetArgumentsForCommandObject()

virtual StructuredData::ObjectSP lldb_private::ScriptInterpreter::GetArgumentsForCommandObject ( StructuredData::GenericSP  cmd_obj_sp)
inlinevirtual

◆ GetChildAtIndex()

virtual lldb::ValueObjectSP lldb_private::ScriptInterpreter::GetChildAtIndex ( const StructuredData::ObjectSP implementor,
uint32_t  idx 
)
inlinevirtual

Definition at line 392 of file ScriptInterpreter.h.

◆ GetDataExtractorFromSBData()

lldb::DataExtractorSP ScriptInterpreter::GetDataExtractorFromSBData ( const lldb::SBData data) const

Definition at line 76 of file ScriptInterpreter.cpp.

References lldb::SBData::m_opaque_sp.

◆ GetDocumentationForItem()

virtual bool lldb_private::ScriptInterpreter::GetDocumentationForItem ( const char *  item,
std::string &  dest 
)
inlinevirtual

Definition at line 486 of file ScriptInterpreter.h.

Referenced by CommandObjectPythonFunction::GetHelpLong().

◆ GetDynamicSettings()

virtual StructuredData::DictionarySP lldb_private::ScriptInterpreter::GetDynamicSettings ( StructuredData::ObjectSP  plugin_module_sp,
Target target,
const char *  setting_name,
lldb_private::Status error 
)
inlinevirtual

◆ GetFlagsForCommandObject()

virtual uint32_t lldb_private::ScriptInterpreter::GetFlagsForCommandObject ( StructuredData::GenericSP  cmd_obj_sp)
inlinevirtual

◆ GetIndexOfChildWithName()

virtual int lldb_private::ScriptInterpreter::GetIndexOfChildWithName ( const StructuredData::ObjectSP implementor,
const char *  child_name 
)
inlinevirtual

Definition at line 397 of file ScriptInterpreter.h.

References UINT32_MAX.

◆ GetInterpreterInfo()

StructuredData::DictionarySP ScriptInterpreter::GetInterpreterInfo ( )
virtual

◆ GetLanguage()

lldb::ScriptLanguage lldb_private::ScriptInterpreter::GetLanguage ( )
inline

◆ GetLongHelpForCommandObject()

virtual bool lldb_private::ScriptInterpreter::GetLongHelpForCommandObject ( StructuredData::GenericSP  cmd_obj_sp,
std::string &  dest 
)
inlinevirtual

◆ GetMaxPositionalArgumentsForCallable()

virtual llvm::Expected< unsigned > lldb_private::ScriptInterpreter::GetMaxPositionalArgumentsForCallable ( const llvm::StringRef &  callable_name)
inlinevirtual

Definition at line 545 of file ScriptInterpreter.h.

◆ GetOpaqueTypeFromSBAttachInfo()

lldb::ProcessAttachInfoSP ScriptInterpreter::GetOpaqueTypeFromSBAttachInfo ( const lldb::SBAttachInfo attach_info) const

Definition at line 85 of file ScriptInterpreter.cpp.

References lldb::SBAttachInfo::m_opaque_sp.

◆ GetOpaqueTypeFromSBBreakpoint()

lldb::BreakpointSP ScriptInterpreter::GetOpaqueTypeFromSBBreakpoint ( const lldb::SBBreakpoint breakpoint) const

Definition at line 80 of file ScriptInterpreter.cpp.

References lldb::SBBreakpoint::m_opaque_wp.

◆ GetOpaqueTypeFromSBEvent()

Event * ScriptInterpreter::GetOpaqueTypeFromSBEvent ( const lldb::SBEvent event) const

Definition at line 105 of file ScriptInterpreter.cpp.

◆ GetOpaqueTypeFromSBLaunchInfo()

lldb::ProcessLaunchInfoSP ScriptInterpreter::GetOpaqueTypeFromSBLaunchInfo ( const lldb::SBLaunchInfo launch_info) const

Definition at line 90 of file ScriptInterpreter.cpp.

References lldb::SBLaunchInfo::m_opaque_sp.

◆ GetOpaqueTypeFromSBMemoryRegionInfo()

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.

◆ GetOpaqueTypeFromSBStream()

lldb::StreamSP ScriptInterpreter::GetOpaqueTypeFromSBStream ( const lldb::SBStream stream) const

Definition at line 109 of file ScriptInterpreter.cpp.

References lldb::SBStream::m_opaque_up.

◆ GetOptionsForCommandObject()

virtual StructuredData::ObjectSP lldb_private::ScriptInterpreter::GetOptionsForCommandObject ( StructuredData::GenericSP  cmd_obj_sp)
inlinevirtual

◆ GetRecognizedArguments()

virtual lldb::ValueObjectListSP lldb_private::ScriptInterpreter::GetRecognizedArguments ( const StructuredData::ObjectSP implementor,
lldb::StackFrameSP  frame_sp 
)
inlinevirtual

◆ GetRepeatCommandForScriptedCommand()

virtual std::optional< std::string > lldb_private::ScriptInterpreter::GetRepeatCommandForScriptedCommand ( StructuredData::GenericSP  impl_obj_sp,
Args args 
)
inlinevirtual

◆ GetScriptedPlatformInterface()

virtual lldb::ScriptedPlatformInterfaceUP lldb_private::ScriptInterpreter::GetScriptedPlatformInterface ( )
inlinevirtual

Definition at line 573 of file ScriptInterpreter.h.

◆ GetScriptedSummary()

virtual bool lldb_private::ScriptInterpreter::GetScriptedSummary ( const char *  function_name,
lldb::ValueObjectSP  valobj,
StructuredData::ObjectSP callee_wrapper_sp,
const TypeSummaryOptions options,
std::string &  retval 
)
inlinevirtual

◆ GetScriptInterpreterPtyName()

const char * lldb_private::ScriptInterpreter::GetScriptInterpreterPtyName ( )

◆ GetShortHelpForCommandObject()

virtual bool lldb_private::ScriptInterpreter::GetShortHelpForCommandObject ( StructuredData::GenericSP  cmd_obj_sp,
std::string &  dest 
)
inlinevirtual

◆ GetStatusFromSBError()

Status ScriptInterpreter::GetStatusFromSBError ( const lldb::SBError error) const

Definition at line 97 of file ScriptInterpreter.cpp.

References error().

◆ GetSyntheticTypeName()

virtual ConstString lldb_private::ScriptInterpreter::GetSyntheticTypeName ( const StructuredData::ObjectSP implementor)
inlinevirtual

Definition at line 418 of file ScriptInterpreter.h.

◆ GetSyntheticValue()

virtual lldb::ValueObjectSP lldb_private::ScriptInterpreter::GetSyntheticValue ( const StructuredData::ObjectSP implementor)
inlinevirtual

Definition at line 413 of file ScriptInterpreter.h.

◆ Interrupt()

virtual bool lldb_private::ScriptInterpreter::Interrupt ( )
inlinevirtual

◆ IsReservedWord()

virtual bool lldb_private::ScriptInterpreter::IsReservedWord ( const char *  word)
inlinevirtual

◆ LanguageToString()

std::string ScriptInterpreter::LanguageToString ( lldb::ScriptLanguage  language)
static

◆ LoadPluginModule()

virtual StructuredData::ObjectSP lldb_private::ScriptInterpreter::LoadPluginModule ( const FileSpec file_spec,
lldb_private::Status error 
)
inlinevirtual

◆ LoadScriptingModule()

bool ScriptInterpreter::LoadScriptingModule ( const char *  filename,
const LoadScriptOptions options,
lldb_private::Status error,
StructuredData::ObjectSP module_sp = nullptr,
FileSpec  extra_search_dir = {} 
)
virtual

Reimplemented in lldb_private::ScriptInterpreterLua.

Definition at line 51 of file ScriptInterpreter.cpp.

References error().

Referenced by lldb_private::Module::LoadScriptingResourceInTarget().

◆ MightHaveChildrenSynthProviderInstance()

virtual bool lldb_private::ScriptInterpreter::MightHaveChildrenSynthProviderInstance ( const StructuredData::ObjectSP implementor)
inlinevirtual

Definition at line 407 of file ScriptInterpreter.h.

◆ OptionParsingStartedForCommandObject()

virtual void lldb_private::ScriptInterpreter::OptionParsingStartedForCommandObject ( StructuredData::GenericSP  cmd_obj_sp)
inlinevirtual

◆ RunScriptBasedCommand() [1/2]

virtual bool lldb_private::ScriptInterpreter::RunScriptBasedCommand ( const char *  impl_function,
llvm::StringRef  args,
ScriptedCommandSynchronicity  synchronicity,
lldb_private::CommandReturnObject cmd_retobj,
Status error,
const lldb_private::ExecutionContext exe_ctx 
)
inlinevirtual

◆ RunScriptBasedCommand() [2/2]

virtual bool lldb_private::ScriptInterpreter::RunScriptBasedCommand ( StructuredData::GenericSP  impl_obj_sp,
llvm::StringRef  args,
ScriptedCommandSynchronicity  synchronicity,
lldb_private::CommandReturnObject cmd_retobj,
Status error,
const lldb_private::ExecutionContext exe_ctx 
)
inlinevirtual

Definition at line 431 of file ScriptInterpreter.h.

◆ RunScriptBasedParsedCommand()

virtual bool lldb_private::ScriptInterpreter::RunScriptBasedParsedCommand ( StructuredData::GenericSP  impl_obj_sp,
Args args,
ScriptedCommandSynchronicity  synchronicity,
lldb_private::CommandReturnObject cmd_retobj,
Status error,
const lldb_private::ExecutionContext exe_ctx 
)
inlinevirtual

Definition at line 439 of file ScriptInterpreter.h.

Referenced by CommandObjectScriptingObjectParsed::DoExecute().

◆ RunScriptFormatKeyword() [1/5]

virtual bool lldb_private::ScriptInterpreter::RunScriptFormatKeyword ( const char *  impl_function,
Process process,
std::string &  output,
Status error 
)
inlinevirtual

Definition at line 453 of file ScriptInterpreter.h.

References error().

Referenced by RunScriptFormatKeyword().

◆ RunScriptFormatKeyword() [2/5]

virtual bool lldb_private::ScriptInterpreter::RunScriptFormatKeyword ( const char *  impl_function,
StackFrame frame,
std::string &  output,
Status error 
)
inlinevirtual

Definition at line 472 of file ScriptInterpreter.h.

References error().

◆ RunScriptFormatKeyword() [3/5]

virtual bool lldb_private::ScriptInterpreter::RunScriptFormatKeyword ( const char *  impl_function,
Target target,
std::string &  output,
Status error 
)
inlinevirtual

Definition at line 466 of file ScriptInterpreter.h.

References error().

◆ RunScriptFormatKeyword() [4/5]

virtual bool lldb_private::ScriptInterpreter::RunScriptFormatKeyword ( const char *  impl_function,
Thread thread,
std::string &  output,
Status error 
)
inlinevirtual

Definition at line 460 of file ScriptInterpreter.h.

References error().

◆ RunScriptFormatKeyword() [5/5]

virtual bool lldb_private::ScriptInterpreter::RunScriptFormatKeyword ( const char *  impl_function,
ValueObject value,
std::string &  output,
Status error 
)
inlinevirtual

Definition at line 479 of file ScriptInterpreter.h.

References error().

◆ ScriptedBreakpointResolverSearchCallback()

virtual bool lldb_private::ScriptInterpreter::ScriptedBreakpointResolverSearchCallback ( StructuredData::GenericSP  implementor_sp,
SymbolContext sym_ctx 
)
inlinevirtual

◆ ScriptedBreakpointResolverSearchDepth()

virtual lldb::SearchDepth lldb_private::ScriptInterpreter::ScriptedBreakpointResolverSearchDepth ( StructuredData::GenericSP  implementor_sp)
inlinevirtual

◆ ScriptedStopHookHandleStop()

virtual bool lldb_private::ScriptInterpreter::ScriptedStopHookHandleStop ( StructuredData::GenericSP  implementor_sp,
ExecutionContext exc_ctx,
lldb::StreamSP  stream_sp 
)
inlinevirtual

◆ SetBreakpointCommandCallback() [1/3]

virtual Status lldb_private::ScriptInterpreter::SetBreakpointCommandCallback ( BreakpointOptions bp_options,
const char *  callback_text,
bool  is_callback 
)
inlinevirtual

Reimplemented in lldb_private::ScriptInterpreterLua.

Definition at line 329 of file ScriptInterpreter.h.

References error().

◆ SetBreakpointCommandCallback() [2/3]

virtual Status lldb_private::ScriptInterpreter::SetBreakpointCommandCallback ( BreakpointOptions bp_options,
std::unique_ptr< BreakpointOptions::CommandData > &  data_up 
)
inlinevirtual

This one is for deserialization:

Definition at line 338 of file ScriptInterpreter.h.

References error().

◆ SetBreakpointCommandCallback() [3/3]

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().

◆ SetBreakpointCommandCallbackFunction() [1/2]

virtual Status lldb_private::ScriptInterpreter::SetBreakpointCommandCallbackFunction ( BreakpointOptions bp_options,
const char *  function_name,
StructuredData::ObjectSP  extra_args_sp 
)
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().

◆ SetBreakpointCommandCallbackFunction() [2/2]

Status ScriptInterpreter::SetBreakpointCommandCallbackFunction ( std::vector< std::reference_wrapper< BreakpointOptions > > &  bp_options_vec,
const char *  function_name,
StructuredData::ObjectSP  extra_args_sp 
)

◆ SetOptionValueForCommandObject()

virtual bool lldb_private::ScriptInterpreter::SetOptionValueForCommandObject ( StructuredData::GenericSP  cmd_obj_sp,
ExecutionContext exe_ctx,
llvm::StringRef  long_option,
llvm::StringRef  value 
)
inlinevirtual

◆ SetWatchpointCommandCallback()

virtual void lldb_private::ScriptInterpreter::SetWatchpointCommandCallback ( WatchpointOptions wp_options,
const char *  user_input,
bool  is_callback 
)
inlinevirtual

Set a one-liner as the callback for the watchpoint.

Reimplemented in lldb_private::ScriptInterpreterLua.

Definition at line 361 of file ScriptInterpreter.h.

◆ ShouldHide()

virtual bool lldb_private::ScriptInterpreter::ShouldHide ( const StructuredData::ObjectSP implementor,
lldb::StackFrameSP  frame_sp 
)
inlinevirtual

◆ StringToLanguage()

lldb::ScriptLanguage ScriptInterpreter::StringToLanguage ( const llvm::StringRef &  string)
static

◆ UpdateSynthProviderInstance()

virtual bool lldb_private::ScriptInterpreter::UpdateSynthProviderInstance ( const StructuredData::ObjectSP implementor)
inlinevirtual

Definition at line 403 of file ScriptInterpreter.h.

Member Data Documentation

◆ m_debugger

Debugger& lldb_private::ScriptInterpreter::m_debugger
protected

◆ m_script_lang

lldb::ScriptLanguage lldb_private::ScriptInterpreter::m_script_lang
protected

Definition at line 605 of file ScriptInterpreter.h.

Referenced by GetLanguage().


The documentation for this class was generated from the following files: