LLDB  mainline
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
lldb_private::AppleObjCRuntimeV1 Class Reference

#include <AppleObjCRuntimeV1.h>

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

Classes

class  ClassDescriptorV1
 
class  HashTableSignature
 

Public Member Functions

 ~AppleObjCRuntimeV1 () override=default
 
bool isA (const void *ClassID) const override
 
lldb::addr_t GetTaggedPointerObfuscator ()
 
bool GetDynamicTypeAndAddress (ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type) override
 
llvm::Expected< std::unique_ptr< UtilityFunction > > CreateObjectChecker (std::string, ExecutionContext &exe_ctx) override
 
ConstString GetPluginName () override
 
ObjCRuntimeVersions GetRuntimeVersion () const override
 
void UpdateISAToDescriptorMapIfNeeded () override
 
DeclVendorGetDeclVendor () override
 
- Public Member Functions inherited from lldb_private::AppleObjCRuntime
 ~AppleObjCRuntime () override
 
bool GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) override
 
bool GetObjectDescription (Stream &str, ValueObject &object) override
 
bool CouldHaveDynamicValue (ValueObject &in_value) override
 
TypeAndOrName FixUpDynamicType (const TypeAndOrName &type_and_or_name, ValueObject &static_value) override
 
bool IsModuleObjCLibrary (const lldb::ModuleSP &module_sp) override
 
bool ReadObjCLibrary (const lldb::ModuleSP &module_sp) override
 
bool HasReadObjCLibrary () override
 
lldb::ThreadPlanSP GetStepThroughTrampolinePlan (Thread &thread, bool stop_others) override
 
lldb::ModuleSP GetObjCModule ()
 
void ModulesDidLoad (const ModuleList &module_list) override
 Called when modules have been loaded in the process. More...
 
void SetExceptionBreakpoints () override
 
void ClearExceptionBreakpoints () override
 
bool ExceptionBreakpointsAreSet () override
 
bool ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason) override
 
lldb::SearchFilterSP CreateExceptionSearchFilter () override
 
lldb::ValueObjectSP GetExceptionObjectForThread (lldb::ThreadSP thread_sp) override
 
lldb::ThreadSP GetBacktraceThreadFromException (lldb::ValueObjectSP thread_sp) override
 
uint32_t GetFoundationVersion ()
 
virtual void GetValuesForGlobalCFBooleans (lldb::addr_t &cf_true, lldb::addr_t &cf_false)
 
virtual bool IsTaggedPointer (lldb::addr_t addr)
 
- Public Member Functions inherited from lldb_private::ObjCLanguageRuntime
 ~ObjCLanguageRuntime () override
 
bool isA (const void *ClassID) const override
 
virtual TaggedPointerVendorGetTaggedPointerVendor ()
 
virtual EncodingToTypeSP GetEncodingToType ()
 
virtual ClassDescriptorSP GetClassDescriptor (ValueObject &in_value)
 
ClassDescriptorSP GetNonKVOClassDescriptor (ValueObject &in_value)
 
virtual ClassDescriptorSP GetClassDescriptorFromClassName (ConstString class_name)
 
virtual ClassDescriptorSP GetClassDescriptorFromISA (ObjCISA isa)
 
ClassDescriptorSP GetNonKVOClassDescriptor (ObjCISA isa)
 
lldb::LanguageType GetLanguageType () const override
 
lldb::addr_t LookupInMethodCache (lldb::addr_t class_addr, lldb::addr_t sel)
 
void AddToMethodCache (lldb::addr_t class_addr, lldb::addr_t sel, lldb::addr_t impl_addr)
 
TypeAndOrName LookupInClassNameCache (lldb::addr_t class_addr)
 
void AddToClassNameCache (lldb::addr_t class_addr, const char *name, lldb::TypeSP type_sp)
 
void AddToClassNameCache (lldb::addr_t class_addr, const TypeAndOrName &class_or_type_name)
 
lldb::TypeSP LookupInCompleteClassCache (ConstString &name)
 
llvm::Optional< CompilerTypeGetRuntimeType (CompilerType base_type) override
 
bool IsValidISA (ObjCISA isa)
 
void UpdateISAToDescriptorMap ()
 
virtual ObjCISA GetISA (ConstString name)
 
virtual ObjCISA GetParentClass (ObjCISA isa)
 
virtual size_t GetByteOffsetForIvar (CompilerType &parent_qual_type, const char *ivar_name)
 
bool HasNewLiteralsAndIndexing ()
 
void SymbolsDidLoad (const ModuleList &module_list) override
 
bool GetTypeBitSize (const CompilerType &compiler_type, uint64_t &size) override
 
bool IsAllowedRuntimeValue (ConstString name) override
 Check whether the name is "self" or "_cmd" and should show up in "frame variable". More...
 
- Public Member Functions inherited from lldb_private::LanguageRuntime
virtual CompilerType GetConcreteType (ExecutionContextScope *exe_scope, ConstString abstract_type_name)
 
virtual bool GetIRPasses (LLVMUserExpression::IRPasses &custom_passes)
 
virtual lldb::addr_t LookupRuntimeSymbol (ConstString name)
 
- Public Member Functions inherited from lldb_private::Runtime
 Runtime (Process *process)
 
virtual ~Runtime ()=default
 
 Runtime (const Runtime &)=delete
 
const Runtimeoperator= (const Runtime &)=delete
 
ProcessGetProcess ()
 
TargetGetTargetRef ()
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
static lldb_private::LanguageRuntimeCreateInstance (Process *process, lldb::LanguageType language)
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static bool classof (const LanguageRuntime *runtime)
 
- Static Public Member Functions inherited from lldb_private::AppleObjCRuntime
static void Initialize ()
 
static void Terminate ()
 
static bool classof (const LanguageRuntime *runtime)
 
static std::tuple< FileSpec, ConstStringGetExceptionThrowLocation ()
 
- Static Public Member Functions inherited from lldb_private::ObjCLanguageRuntime
static lldb::BreakpointPreconditionSP GetBreakpointExceptionPrecondition (lldb::LanguageType language, bool throw_bp)
 
static bool classof (const LanguageRuntime *runtime)
 
static ObjCLanguageRuntimeGet (Process &process)
 
- Static Public Member Functions inherited from lldb_private::LanguageRuntime
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 lldb::BreakpointPreconditionSP GetExceptionPrecondition (lldb::LanguageType language, bool throw_bp)
 
static lldb::UnwindPlanSP GetRuntimeUnwindPlan (lldb_private::Thread &thread, lldb_private::RegisterContext *regctx, bool &behaves_like_zeroth_frame)
 A language runtime may be able to provide a special UnwindPlan for the frame represented by the register contents regctx when that frame is not following the normal ABI conventions. More...
 

Static Public Attributes

static char ID = 0
 
- Static Public Attributes inherited from lldb_private::AppleObjCRuntime
static char ID = 0
 
- Static Public Attributes inherited from lldb_private::ObjCLanguageRuntime
static char ID = 0
 
- Static Public Attributes inherited from lldb_private::LanguageRuntime
static char ID = 0
 

Protected Member Functions

lldb::BreakpointResolverSP CreateExceptionResolver (const lldb::BreakpointSP &bkpt, bool catch_bp, bool throw_bp) override
 
lldb::addr_t GetISAHashTablePointer ()
 
- Protected Member Functions inherited from lldb_private::AppleObjCRuntime
 AppleObjCRuntime (Process *process)
 
bool CalculateHasNewLiteralsAndIndexing () override
 
void ReadObjCLibraryIfNeeded (const ModuleList &module_list)
 
AddressGetPrintForDebuggerAddr ()
 
- Protected Member Functions inherited from lldb_private::ObjCLanguageRuntime
 ObjCLanguageRuntime (Process *process)
 
bool ISAIsCached (ObjCISA isa) const
 
bool AddClass (ObjCISA isa, const ClassDescriptorSP &descriptor_sp)
 
bool AddClass (ObjCISA isa, const ClassDescriptorSP &descriptor_sp, const char *class_name)
 
bool AddClass (ObjCISA isa, const ClassDescriptorSP &descriptor_sp, uint32_t class_name_hash)
 
ISAToDescriptorIterator GetDescriptorIterator (ConstString name)
 
std::pair< ISAToDescriptorIterator, ISAToDescriptorIteratorGetDescriptorIteratorPair (bool update_if_needed=true)
 
void ReadObjCLibraryIfNeeded (const ModuleList &module_list)
 
 ObjCLanguageRuntime (const ObjCLanguageRuntime &)=delete
 
const ObjCLanguageRuntimeoperator= (const ObjCLanguageRuntime &)=delete
 
- Protected Member Functions inherited from lldb_private::LanguageRuntime
virtual lldb::UnwindPlanSP GetRuntimeUnwindPlan (lldb::ProcessSP process_sp, lldb_private::RegisterContext *regctx, bool &behaves_like_zeroth_frame)
 
 LanguageRuntime (Process *process)
 

Protected Attributes

HashTableSignature m_hash_signature
 
lldb::addr_t m_isa_hash_table_ptr
 
std::unique_ptr< DeclVendorm_decl_vendor_up
 
- Protected Attributes inherited from lldb_private::AppleObjCRuntime
std::unique_ptr< Addressm_PrintForDebugger_addr
 
bool m_read_objc_library
 
std::unique_ptr< lldb_private::AppleObjCTrampolineHandlerm_objc_trampoline_handler_up
 
lldb::BreakpointSP m_objc_exception_bp_sp
 
lldb::ModuleWP m_objc_module_wp
 
std::unique_ptr< FunctionCallerm_print_object_caller_up
 
llvm::Optional< uint32_tm_Foundation_major
 
- Protected Attributes inherited from lldb_private::ObjCLanguageRuntime
uint32_t m_isa_to_descriptor_stop_id
 
CompleteClassMap m_complete_class_cache
 
CompleteClassSet m_negative_complete_class_cache
 
- Protected Attributes inherited from lldb_private::Runtime
Processm_process
 

Private Member Functions

 AppleObjCRuntimeV1 (Process *process)
 

Additional Inherited Members

- Public Types inherited from lldb_private::ObjCLanguageRuntime
enum  ObjCRuntimeVersions { ObjCRuntimeVersions::eObjC_VersionUnknown = 0, ObjCRuntimeVersions::eAppleObjC_V1 = 1, ObjCRuntimeVersions::eAppleObjC_V2 = 2 }
 
typedef lldb::addr_t ObjCISA
 
typedef std::shared_ptr< ClassDescriptorClassDescriptorSP
 
typedef std::shared_ptr< EncodingToTypeEncodingToTypeSP
 
- Protected Types inherited from lldb_private::ObjCLanguageRuntime
typedef std::map< ConstString, lldb::TypeWP > CompleteClassMap
 
typedef std::unordered_set< ConstString, ConstStringSetHelpers, ConstStringSetHelpersCompleteClassSet
 
- Static Protected Member Functions inherited from lldb_private::AppleObjCRuntime
static bool AppleIsModuleObjCLibrary (const lldb::ModuleSP &module_sp)
 
static ObjCRuntimeVersions GetObjCVersion (Process *process, lldb::ModuleSP &objc_module_sp)
 

Detailed Description

Definition at line 19 of file AppleObjCRuntimeV1.h.

Constructor & Destructor Documentation

◆ ~AppleObjCRuntimeV1()

lldb_private::AppleObjCRuntimeV1::~AppleObjCRuntimeV1 ( )
overridedefault

◆ AppleObjCRuntimeV1()

AppleObjCRuntimeV1::AppleObjCRuntimeV1 ( Process process)
private

Definition at line 41 of file AppleObjCRuntimeV1.cpp.

Referenced by CreateInstance().

Member Function Documentation

◆ classof()

static bool lldb_private::AppleObjCRuntimeV1::classof ( const LanguageRuntime runtime)
inlinestatic

Definition at line 39 of file AppleObjCRuntimeV1.h.

References ID, and lldb_private::LanguageRuntime::isA().

◆ CreateExceptionResolver()

BreakpointResolverSP AppleObjCRuntimeV1::CreateExceptionResolver ( const lldb::BreakpointSP &  bkpt,
bool  catch_bp,
bool  throw_bp 
)
overrideprotectedvirtual

◆ CreateInstance()

lldb_private::LanguageRuntime * AppleObjCRuntimeV1::CreateInstance ( Process process,
lldb::LanguageType  language 
)
static

◆ CreateObjectChecker()

llvm::Expected< std::unique_ptr< UtilityFunction > > AppleObjCRuntimeV1::CreateObjectChecker ( std::string  name,
ExecutionContext exe_ctx 
)
overridevirtual

◆ GetDeclVendor()

DeclVendor * AppleObjCRuntimeV1::GetDeclVendor ( )
overridevirtual

Reimplemented from lldb_private::LanguageRuntime.

Definition at line 438 of file AppleObjCRuntimeV1.cpp.

◆ GetDynamicTypeAndAddress()

bool AppleObjCRuntimeV1::GetDynamicTypeAndAddress ( ValueObject in_value,
lldb::DynamicValueType  use_dynamic,
TypeAndOrName class_type_or_name,
Address address,
Value::ValueType value_type 
)
overridevirtual

◆ GetISAHashTablePointer()

lldb::addr_t AppleObjCRuntimeV1::GetISAHashTablePointer ( )
protected

◆ GetPluginName()

ConstString AppleObjCRuntimeV1::GetPluginName ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 101 of file AppleObjCRuntimeV1.cpp.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

lldb_private::ConstString AppleObjCRuntimeV1::GetPluginNameStatic ( )
static

Definition at line 95 of file AppleObjCRuntimeV1.cpp.

Referenced by GetPluginName(), and Initialize().

◆ GetRuntimeVersion()

ObjCRuntimeVersions lldb_private::AppleObjCRuntimeV1::GetRuntimeVersion ( ) const
inlineoverridevirtual

◆ GetTaggedPointerObfuscator()

lldb::addr_t AppleObjCRuntimeV1::GetTaggedPointerObfuscator ( )

Definition at line 285 of file AppleObjCRuntimeV1.cpp.

◆ Initialize()

void AppleObjCRuntimeV1::Initialize ( )
static

◆ isA()

bool lldb_private::AppleObjCRuntimeV1::isA ( const void *  ClassID) const
inlineoverridevirtual

Reimplemented from lldb_private::AppleObjCRuntime.

Definition at line 35 of file AppleObjCRuntimeV1.h.

References ID, and lldb_private::AppleObjCRuntime::isA().

◆ Terminate()

void AppleObjCRuntimeV1::Terminate ( )
static

◆ UpdateISAToDescriptorMapIfNeeded()

void AppleObjCRuntimeV1::UpdateISAToDescriptorMapIfNeeded ( )
overridevirtual

Member Data Documentation

◆ ID

char AppleObjCRuntimeV1::ID = 0
static

Definition at line 33 of file AppleObjCRuntimeV1.h.

Referenced by classof(), and isA().

◆ m_decl_vendor_up

std::unique_ptr<DeclVendor> lldb_private::AppleObjCRuntimeV1::m_decl_vendor_up
protected

Definition at line 152 of file AppleObjCRuntimeV1.h.

◆ m_hash_signature

HashTableSignature lldb_private::AppleObjCRuntimeV1::m_hash_signature
protected

Definition at line 150 of file AppleObjCRuntimeV1.h.

Referenced by UpdateISAToDescriptorMapIfNeeded().

◆ m_isa_hash_table_ptr

lldb::addr_t lldb_private::AppleObjCRuntimeV1::m_isa_hash_table_ptr
protected

Definition at line 151 of file AppleObjCRuntimeV1.h.

Referenced by GetISAHashTablePointer().


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