LLDB mainline
Public Member Functions | Protected Member Functions | Friends | List of all members
lldb_private::ScriptedProcessInterface Class Referenceabstract

#include <ScriptedProcessInterface.h>

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

Public Member Functions

virtual llvm::Expected< StructuredData::GenericSPCreatePluginObject (llvm::StringRef class_name, ExecutionContext &exe_ctx, StructuredData::DictionarySP args_sp, StructuredData::Generic *script_obj=nullptr)=0
 
virtual StructuredData::DictionarySP GetCapabilities ()
 
virtual Status Attach (const ProcessAttachInfo &attach_info)
 
virtual Status Launch ()
 
virtual Status Resume ()
 
virtual std::optional< MemoryRegionInfoGetMemoryRegionContainingAddress (lldb::addr_t address, Status &error)
 
virtual StructuredData::DictionarySP GetThreadsInfo ()
 
virtual bool CreateBreakpoint (lldb::addr_t addr, Status &error)
 
virtual lldb::DataExtractorSP ReadMemoryAtAddress (lldb::addr_t address, size_t size, Status &error)
 
virtual lldb::offset_t WriteMemoryAtAddress (lldb::addr_t addr, lldb::DataExtractorSP data_sp, Status &error)
 
virtual StructuredData::ArraySP GetLoadedImages ()
 
virtual lldb::pid_t GetProcessID ()
 
virtual bool IsAlive ()
 
virtual std::optional< std::string > GetScriptedThreadPluginName ()
 
virtual StructuredData::DictionarySP GetMetadata ()
 
- Public Member Functions inherited from lldb_private::ScriptedInterface
 ScriptedInterface ()=default
 
virtual ~ScriptedInterface ()=default
 
StructuredData::GenericSP GetScriptObjectInstance ()
 
virtual llvm::SmallVector< llvm::StringLiteral > GetAbstractMethods () const =0
 

Protected Member Functions

virtual lldb::ScriptedThreadInterfaceSP CreateScriptedThreadInterface ()
 

Friends

class ScriptedThread
 

Additional Inherited Members

- Static Public Member Functions inherited from lldb_private::ScriptedInterface
template<typename Ret >
static Ret ErrorWithMessage (llvm::StringRef caller_name, llvm::StringRef error_msg, Status &error, LLDBLog log_caterogy=LLDBLog::Process)
 
template<typename T = StructuredData::ObjectSP>
static bool CheckStructuredDataObject (llvm::StringRef caller, T obj, Status &error)
 
static bool CreateInstance (lldb::ScriptLanguage language, ScriptedInterfaceUsages usages)
 
- Protected Attributes inherited from lldb_private::ScriptedInterface
StructuredData::GenericSP m_object_instance_sp
 

Detailed Description

Definition at line 22 of file ScriptedProcessInterface.h.

Member Function Documentation

◆ Attach()

virtual Status lldb_private::ScriptedProcessInterface::Attach ( const ProcessAttachInfo attach_info)
inlinevirtual

Definition at line 31 of file ScriptedProcessInterface.h.

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

◆ CreateBreakpoint()

virtual bool lldb_private::ScriptedProcessInterface::CreateBreakpoint ( lldb::addr_t  addr,
Status error 
)
inlinevirtual

Definition at line 47 of file ScriptedProcessInterface.h.

References error().

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

◆ CreatePluginObject()

virtual llvm::Expected< StructuredData::GenericSP > lldb_private::ScriptedProcessInterface::CreatePluginObject ( llvm::StringRef  class_name,
ExecutionContext exe_ctx,
StructuredData::DictionarySP  args_sp,
StructuredData::Generic script_obj = nullptr 
)
pure virtual

◆ CreateScriptedThreadInterface()

virtual lldb::ScriptedThreadInterfaceSP lldb_private::ScriptedProcessInterface::CreateScriptedThreadInterface ( )
inlineprotectedvirtual

Definition at line 77 of file ScriptedProcessInterface.h.

Referenced by lldb_private::ScriptedThread::Create().

◆ GetCapabilities()

virtual StructuredData::DictionarySP lldb_private::ScriptedProcessInterface::GetCapabilities ( )
inlinevirtual

Definition at line 29 of file ScriptedProcessInterface.h.

◆ GetLoadedImages()

virtual StructuredData::ArraySP lldb_private::ScriptedProcessInterface::GetLoadedImages ( )
inlinevirtual

◆ GetMemoryRegionContainingAddress()

virtual std::optional< MemoryRegionInfo > lldb_private::ScriptedProcessInterface::GetMemoryRegionContainingAddress ( lldb::addr_t  address,
Status error 
)
inlinevirtual

Definition at line 40 of file ScriptedProcessInterface.h.

References error().

◆ GetMetadata()

virtual StructuredData::DictionarySP lldb_private::ScriptedProcessInterface::GetMetadata ( )
inlinevirtual

◆ GetProcessID()

virtual lldb::pid_t lldb_private::ScriptedProcessInterface::GetProcessID ( )
inlinevirtual

◆ GetScriptedThreadPluginName()

virtual std::optional< std::string > lldb_private::ScriptedProcessInterface::GetScriptedThreadPluginName ( )
inlinevirtual

Definition at line 69 of file ScriptedProcessInterface.h.

Referenced by lldb_private::ScriptedThread::Create().

◆ GetThreadsInfo()

virtual StructuredData::DictionarySP lldb_private::ScriptedProcessInterface::GetThreadsInfo ( )
inlinevirtual

◆ IsAlive()

virtual bool lldb_private::ScriptedProcessInterface::IsAlive ( )
inlinevirtual

Definition at line 67 of file ScriptedProcessInterface.h.

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

◆ Launch()

virtual Status lldb_private::ScriptedProcessInterface::Launch ( )
inlinevirtual

Definition at line 35 of file ScriptedProcessInterface.h.

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

◆ ReadMemoryAtAddress()

virtual lldb::DataExtractorSP lldb_private::ScriptedProcessInterface::ReadMemoryAtAddress ( lldb::addr_t  address,
size_t  size,
Status error 
)
inlinevirtual

◆ Resume()

virtual Status lldb_private::ScriptedProcessInterface::Resume ( )
inlinevirtual

Definition at line 37 of file ScriptedProcessInterface.h.

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

◆ WriteMemoryAtAddress()

virtual lldb::offset_t lldb_private::ScriptedProcessInterface::WriteMemoryAtAddress ( lldb::addr_t  addr,
lldb::DataExtractorSP  data_sp,
Status error 
)
inlinevirtual

Friends And Related Function Documentation

◆ ScriptedThread

friend class ScriptedThread
friend

Definition at line 76 of file ScriptedProcessInterface.h.


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