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

#include <LanguageRuntime.h>

Inheritance diagram for lldb_private::LanguageRuntime:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::LanguageRuntime:
Collaboration graph
[legend]

Public Member Functions

 ~LanguageRuntime () override
 
virtual lldb::LanguageType GetLanguageType () const =0
 
virtual bool GetObjectDescription (Stream &str, ValueObject &object)=0
 
virtual bool GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope)=0
 
virtual bool GetDynamicTypeAndAddress (ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type)=0
 
virtual CompilerType GetConcreteType (ExecutionContextScope *exe_scope, ConstString abstract_type_name)
 
virtual bool CouldHaveDynamicValue (ValueObject &in_value)=0
 
virtual TypeAndOrName FixUpDynamicType (const TypeAndOrName &type_and_or_name, ValueObject &static_value)=0
 
virtual void SetExceptionBreakpoints ()
 
virtual void ClearExceptionBreakpoints ()
 
virtual bool ExceptionBreakpointsAreSet ()
 
virtual bool ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason)
 
virtual lldb::ValueObjectSP GetExceptionObjectForThread (lldb::ThreadSP thread_sp)
 
virtual lldb::ThreadSP GetBacktraceThreadFromException (lldb::ValueObjectSP thread_sp)
 
ProcessGetProcess ()
 
TargetGetTargetRef ()
 
virtual lldb::BreakpointResolverSP CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp)=0
 
virtual lldb::SearchFilterSP CreateExceptionSearchFilter ()
 
virtual bool GetTypeBitSize (const CompilerType &compiler_type, uint64_t &size)
 
virtual bool IsRuntimeSupportValue (ValueObject &valobj)
 Identify whether a value is a language implementation detaul that should be hidden from the user interface by default. More...
 
virtual void ModulesDidLoad (const ModuleList &module_list)
 
virtual bool GetOverrideExprOptions (clang::TargetOptions &prototype)
 
virtual bool GetIRPasses (LLVMUserExpression::IRPasses &custom_passes)
 
- Public Member Functions inherited from lldb_private::PluginInterface
virtual ~PluginInterface ()
 
virtual ConstString GetPluginName ()=0
 
virtual uint32_t GetPluginVersion ()=0
 

Static Public Member Functions

static LanguageRuntimeFindPlugin (Process *process, lldb::LanguageType language)
 
static void InitializeCommands (CommandObject *parent)
 
static lldb::BreakpointSP CreateExceptionBreakpoint (Target &target, lldb::LanguageType language, bool catch_bp, bool throw_bp, bool is_internal=false)
 
static Breakpoint::BreakpointPreconditionSP CreateExceptionPrecondition (lldb::LanguageType language, bool catch_bp, bool throw_bp)
 

Protected Member Functions

 LanguageRuntime (Process *process)
 

Protected Attributes

Processm_process
 

Detailed Description

Definition at line 60 of file LanguageRuntime.h.

Constructor & Destructor Documentation

◆ ~LanguageRuntime()

LanguageRuntime::~LanguageRuntime ( )
overridedefault

Referenced by LanguageRuntime().

◆ LanguageRuntime()

LanguageRuntime::LanguageRuntime ( Process process)
protected

Definition at line 221 of file LanguageRuntime.cpp.

References ~LanguageRuntime().

Member Function Documentation

◆ ClearExceptionBreakpoints()

virtual void lldb_private::LanguageRuntime::ClearExceptionBreakpoints ( )
inlinevirtual

◆ CouldHaveDynamicValue()

virtual bool lldb_private::LanguageRuntime::CouldHaveDynamicValue ( ValueObject in_value)
pure virtual

◆ CreateExceptionBreakpoint()

BreakpointSP LanguageRuntime::CreateExceptionBreakpoint ( Target target,
lldb::LanguageType  language,
bool  catch_bp,
bool  throw_bp,
bool  is_internal = false 
)
static

◆ CreateExceptionPrecondition()

Breakpoint::BreakpointPreconditionSP LanguageRuntime::CreateExceptionPrecondition ( lldb::LanguageType  language,
bool  catch_bp,
bool  throw_bp 
)
static

Definition at line 226 of file LanguageRuntime.cpp.

References lldb::eLanguageTypeObjC.

Referenced by CreateExceptionBreakpoint().

◆ CreateExceptionResolver()

virtual lldb::BreakpointResolverSP lldb_private::LanguageRuntime::CreateExceptionResolver ( Breakpoint bkpt,
bool  catch_bp,
bool  throw_bp 
)
pure virtual

◆ CreateExceptionSearchFilter()

lldb::SearchFilterSP LanguageRuntime::CreateExceptionSearchFilter ( )
virtual

◆ ExceptionBreakpointsAreSet()

virtual bool lldb_private::LanguageRuntime::ExceptionBreakpointsAreSet ( )
inlinevirtual

◆ ExceptionBreakpointsExplainStop()

virtual bool lldb_private::LanguageRuntime::ExceptionBreakpointsExplainStop ( lldb::StopInfoSP  stop_reason)
inlinevirtual

◆ FindPlugin()

LanguageRuntime * LanguageRuntime::FindPlugin ( Process process,
lldb::LanguageType  language 
)
static

◆ FixUpDynamicType()

virtual TypeAndOrName lldb_private::LanguageRuntime::FixUpDynamicType ( const TypeAndOrName type_and_or_name,
ValueObject static_value 
)
pure virtual

◆ GetBacktraceThreadFromException()

virtual lldb::ThreadSP lldb_private::LanguageRuntime::GetBacktraceThreadFromException ( lldb::ValueObjectSP  thread_sp)
inlinevirtual

Reimplemented in lldb_private::AppleObjCRuntime.

Definition at line 127 of file LanguageRuntime.h.

◆ GetConcreteType()

virtual CompilerType lldb_private::LanguageRuntime::GetConcreteType ( ExecutionContextScope exe_scope,
ConstString  abstract_type_name 
)
inlinevirtual

Definition at line 86 of file LanguageRuntime.h.

◆ GetDynamicTypeAndAddress()

virtual bool lldb_private::LanguageRuntime::GetDynamicTypeAndAddress ( ValueObject in_value,
lldb::DynamicValueType  use_dynamic,
TypeAndOrName class_type_or_name,
Address address,
Value::ValueType value_type 
)
pure virtual

◆ GetExceptionObjectForThread()

virtual lldb::ValueObjectSP lldb_private::LanguageRuntime::GetExceptionObjectForThread ( lldb::ThreadSP  thread_sp)
inlinevirtual

◆ GetIRPasses()

virtual bool lldb_private::LanguageRuntime::GetIRPasses ( LLVMUserExpression::IRPasses custom_passes)
inlinevirtual

Definition at line 162 of file LanguageRuntime.h.

◆ GetLanguageType()

virtual lldb::LanguageType lldb_private::LanguageRuntime::GetLanguageType ( ) const
pure virtual

◆ GetObjectDescription() [1/2]

virtual bool lldb_private::LanguageRuntime::GetObjectDescription ( Stream str,
ValueObject object 
)
pure virtual

◆ GetObjectDescription() [2/2]

virtual bool lldb_private::LanguageRuntime::GetObjectDescription ( Stream str,
Value value,
ExecutionContextScope exe_scope 
)
pure virtual

◆ GetOverrideExprOptions()

virtual bool lldb_private::LanguageRuntime::GetOverrideExprOptions ( clang::TargetOptions &  prototype)
inlinevirtual

◆ GetProcess()

Process* lldb_private::LanguageRuntime::GetProcess ( )
inline

◆ GetTargetRef()

Target& lldb_private::LanguageRuntime::GetTargetRef ( )
inline

◆ GetTypeBitSize()

virtual bool lldb_private::LanguageRuntime::GetTypeBitSize ( const CompilerType compiler_type,
uint64_t &  size 
)
inlinevirtual

Reimplemented in lldb_private::ObjCLanguageRuntime.

Definition at line 141 of file LanguageRuntime.h.

◆ InitializeCommands()

void LanguageRuntime::InitializeCommands ( CommandObject parent)
static

◆ IsRuntimeSupportValue()

virtual bool lldb_private::LanguageRuntime::IsRuntimeSupportValue ( ValueObject valobj)
inlinevirtual

Identify whether a value is a language implementation detaul that should be hidden from the user interface by default.

Reimplemented in lldb_private::ObjCLanguageRuntime, and lldb_private::CPPLanguageRuntime.

Definition at line 148 of file LanguageRuntime.h.

Referenced by lldb_private::ValueObject::IsRuntimeSupportValue().

◆ ModulesDidLoad()

virtual void lldb_private::LanguageRuntime::ModulesDidLoad ( const ModuleList module_list)
inlinevirtual

Reimplemented in lldb_private::RenderScriptRuntime, and lldb_private::AppleObjCRuntime.

Definition at line 150 of file LanguageRuntime.h.

◆ SetExceptionBreakpoints()

virtual void lldb_private::LanguageRuntime::SetExceptionBreakpoints ( )
inlinevirtual

Member Data Documentation

◆ m_process

Process* lldb_private::LanguageRuntime::m_process
protected

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