LLDB mainline
|
#include <GNUstepObjCRuntime.h>
Public Member Functions | |
~GNUstepObjCRuntime () override | |
llvm::StringRef | GetPluginName () override |
void | ModulesDidLoad (const ModuleList &module_list) override |
Called when modules have been loaded in the process. | |
bool | isA (const void *ClassID) const override |
llvm::Error | GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) override |
llvm::Error | GetObjectDescription (Stream &str, ValueObject &object) override |
bool | CouldHaveDynamicValue (ValueObject &in_value) override |
bool | GetDynamicTypeAndAddress (ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type) override |
TypeAndOrName | FixUpDynamicType (const TypeAndOrName &type_and_or_name, ValueObject &static_value) override |
lldb::BreakpointResolverSP | CreateExceptionResolver (const lldb::BreakpointSP &bkpt, bool catch_bp, bool throw_bp) override |
lldb::ThreadPlanSP | GetStepThroughTrampolinePlan (Thread &thread, bool stop_others) override |
bool | IsModuleObjCLibrary (const lldb::ModuleSP &module_sp) override |
bool | ReadObjCLibrary (const lldb::ModuleSP &module_sp) override |
bool | HasReadObjCLibrary () override |
llvm::Expected< std::unique_ptr< UtilityFunction > > | CreateObjectChecker (std::string name, ExecutionContext &exe_ctx) override |
ObjCRuntimeVersions | GetRuntimeVersion () const override |
void | UpdateISAToDescriptorMapIfNeeded () override |
Public Member Functions inherited from lldb_private::ObjCLanguageRuntime | |
~ObjCLanguageRuntime () override | |
bool | isA (const void *ClassID) const override |
virtual TaggedPointerVendor * | GetTaggedPointerVendor () |
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 |
virtual bool | IsModuleObjCLibrary (const lldb::ModuleSP &module_sp)=0 |
virtual bool | ReadObjCLibrary (const lldb::ModuleSP &module_sp)=0 |
virtual bool | HasReadObjCLibrary ()=0 |
lldb::addr_t | LookupInMethodCache (lldb::addr_t class_addr, lldb::addr_t sel) |
lldb::addr_t | LookupInMethodCache (lldb::addr_t class_addr, llvm::StringRef sel_str) |
void | AddToMethodCache (lldb::addr_t class_addr, lldb::addr_t sel, lldb::addr_t impl_addr) |
void | AddToMethodCache (lldb::addr_t class_addr, llvm::StringRef sel_str, 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) |
std::optional< CompilerType > | GetRuntimeType (CompilerType base_type) override |
virtual llvm::Expected< std::unique_ptr< UtilityFunction > > | CreateObjectChecker (std::string name, ExecutionContext &exe_ctx)=0 |
virtual ObjCRuntimeVersions | GetRuntimeVersion () const |
bool | IsValidISA (ObjCISA isa) |
virtual void | UpdateISAToDescriptorMapIfNeeded ()=0 |
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 |
std::optional< uint64_t > | GetTypeBitSize (const CompilerType &compiler_type) override |
bool | IsAllowedRuntimeValue (ConstString name) override |
Check whether the name is "self" or "_cmd" and should show up in "frame variable". | |
Public Member Functions inherited from lldb_private::LanguageRuntime | |
virtual lldb::LanguageType | GetLanguageType () const =0 |
virtual LanguageRuntime * | GetPreferredLanguageRuntime (ValueObject &in_value) |
Return the preferred language runtime instance, which in most cases will be the current instance. | |
virtual llvm::Error | GetObjectDescription (Stream &str, ValueObject &object)=0 |
virtual llvm::Error | GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope)=0 |
virtual llvm::Expected< VTableInfo > | GetVTableInfo (ValueObject &in_value, bool check_type) |
Get the vtable information for a given value. | |
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) |
virtual DeclVendor * | GetDeclVendor () |
virtual lldb::BreakpointResolverSP | CreateExceptionResolver (const lldb::BreakpointSP &bkpt, bool catch_bp, bool throw_bp)=0 |
virtual lldb::SearchFilterSP | CreateExceptionSearchFilter () |
virtual std::optional< uint64_t > | GetTypeBitSize (const CompilerType &compiler_type) |
virtual void | SymbolsDidLoad (const ModuleList &module_list) |
virtual lldb::ThreadPlanSP | GetStepThroughTrampolinePlan (Thread &thread, bool stop_others)=0 |
virtual bool | IsAllowedRuntimeValue (ConstString name) |
Identify whether a name is a runtime value that should not be hidden by from the user interface. | |
virtual std::optional< CompilerType > | GetRuntimeType (CompilerType base_type) |
void | ModulesDidLoad (const ModuleList &module_list) override |
Called when modules have been loaded in the process. | |
virtual bool | GetIRPasses (LLVMUserExpression::IRPasses &custom_passes) |
virtual lldb::addr_t | LookupRuntimeSymbol (ConstString name) |
virtual bool | isA (const void *ClassID) const |
Public Member Functions inherited from lldb_private::Runtime | |
Runtime (Process *process) | |
virtual | ~Runtime ()=default |
Runtime (const Runtime &)=delete | |
const Runtime & | operator= (const Runtime &)=delete |
Process * | GetProcess () |
Target & | GetTargetRef () |
virtual void | ModulesDidLoad (const ModuleList &module_list)=0 |
Called when modules have been loaded in the process. | |
Public Member Functions inherited from lldb_private::PluginInterface | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
virtual llvm::StringRef | GetPluginName ()=0 |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static lldb_private::LanguageRuntime * | CreateInstance (Process *process, lldb::LanguageType language) |
static llvm::StringRef | GetPluginNameStatic () |
static bool | classof (const LanguageRuntime *runtime) |
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 ObjCLanguageRuntime * | Get (Process &process) |
Static Public Member Functions inherited from lldb_private::LanguageRuntime | |
static LanguageRuntime * | FindPlugin (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. | |
Static Public Attributes | |
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 Attributes | |
lldb::ModuleSP | m_objc_module_sp |
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 | |
Process * | m_process |
Additional Inherited Members | |
Public Types inherited from lldb_private::ObjCLanguageRuntime | |
enum class | ObjCRuntimeVersions { eObjC_VersionUnknown = 0 , eAppleObjC_V1 = 1 , eAppleObjC_V2 = 2 , eGNUstep_libobjc2 = 3 } |
typedef lldb::addr_t | ObjCISA |
typedef std::shared_ptr< ClassDescriptor > | ClassDescriptorSP |
typedef std::shared_ptr< EncodingToType > | EncodingToTypeSP |
Protected Types inherited from lldb_private::ObjCLanguageRuntime | |
typedef std::map< ConstString, lldb::TypeWP > | CompleteClassMap |
typedef std::unordered_set< ConstString, ConstStringSetHelpers, ConstStringSetHelpers > | CompleteClassSet |
Definition at line 24 of file GNUstepObjCRuntime.h.
|
overridedefault |
|
protected |
Definition at line 102 of file GNUstepObjCRuntime.cpp.
References lldb_private::Target::GetImages(), lldb_private::Process::GetTarget(), and lldb_private::ObjCLanguageRuntime::ReadObjCLibraryIfNeeded().
|
inlinestatic |
Definition at line 53 of file GNUstepObjCRuntime.h.
References ID, and lldb_private::LanguageRuntime::isA().
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 120 of file GNUstepObjCRuntime.cpp.
References lldb_private::ValueObject::GetCompilerType(), and lldb_private::CompilerType::IsPossibleDynamicType().
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 165 of file GNUstepObjCRuntime.cpp.
References lldb::eLanguageTypeUnknown, lldb_private::eLazyBoolNo, and lldb_private::Breakpoint::Exact.
|
static |
Definition at line 67 of file GNUstepObjCRuntime.cpp.
References lldb::eLanguageTypeObjC, lldb::eSymbolTypeCode, lldb_private::ModuleList::FindSymbolsMatchingRegExAndType(), lldb_private::ModuleList::FindSymbolsWithNameAndType(), lldb_private::Target::GetArchitecture(), lldb_private::Target::GetImages(), lldb_private::SymbolContextList::GetSize(), lldb_private::Process::GetTarget(), lldb_private::ArchSpec::GetTriple(), and ScanForGNUstepObjCLibraryCandidate().
Referenced by Initialize(), and Terminate().
|
overridevirtual |
Implements lldb_private::ObjCLanguageRuntime.
Definition at line 178 of file GNUstepObjCRuntime.cpp.
References lldb_private::Target::CreateUtilityFunction(), lldb::eLanguageTypeC, lldb_private::Runtime::GetTargetRef(), and UNUSED_IF_ASSERT_DISABLED.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 135 of file GNUstepObjCRuntime.cpp.
References lldb_private::Flags::AllSet(), lldb_private::ValueObject::GetCompilerType(), lldb_private::TypeAndOrName::GetCompilerType(), lldb_private::ConstString::GetCString(), lldb_private::TypeAndOrName::GetName(), lldb_private::CompilerType::GetPointerType(), lldb_private::CompilerType::GetTypeInfo(), lldb_private::TypeAndOrName::HasType(), lldb_private::TypeAndOrName::SetCompilerType(), and lldb_private::TypeAndOrName::SetName().
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 127 of file GNUstepObjCRuntime.cpp.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 114 of file GNUstepObjCRuntime.cpp.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 107 of file GNUstepObjCRuntime.cpp.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 45 of file GNUstepObjCRuntime.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 41 of file GNUstepObjCRuntime.h.
Referenced by GetPluginName(), and Initialize().
|
inlineoverridevirtual |
Reimplemented from lldb_private::ObjCLanguageRuntime.
Definition at line 96 of file GNUstepObjCRuntime.h.
References lldb_private::ObjCLanguageRuntime::eGNUstep_libobjc2.
|
overridevirtual |
Implements lldb_private::LanguageRuntime.
Definition at line 200 of file GNUstepObjCRuntime.cpp.
|
inlineoverridevirtual |
Implements lldb_private::ObjCLanguageRuntime.
Definition at line 91 of file GNUstepObjCRuntime.h.
References m_objc_module_sp.
|
static |
Definition at line 30 of file GNUstepObjCRuntime.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
|
inlineoverridevirtual |
Reimplemented from lldb_private::LanguageRuntime.
Definition at line 49 of file GNUstepObjCRuntime.h.
References ID, and lldb_private::ObjCLanguageRuntime::isA().
|
overridevirtual |
Implements lldb_private::ObjCLanguageRuntime.
Definition at line 210 of file GNUstepObjCRuntime.cpp.
References CanModuleBeGNUstepObjCLibrary(), lldb_private::Target::GetArchitecture(), lldb_private::Runtime::GetTargetRef(), and lldb_private::ArchSpec::GetTriple().
|
overridevirtual |
Called when modules have been loaded in the process.
Reimplemented from lldb_private::LanguageRuntime.
Definition at line 224 of file GNUstepObjCRuntime.cpp.
References lldb_private::ObjCLanguageRuntime::ReadObjCLibraryIfNeeded().
|
overridevirtual |
Implements lldb_private::ObjCLanguageRuntime.
Definition at line 215 of file GNUstepObjCRuntime.cpp.
References m_objc_module_sp.
|
static |
Definition at line 36 of file GNUstepObjCRuntime.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
|
overridevirtual |
Implements lldb_private::ObjCLanguageRuntime.
Definition at line 206 of file GNUstepObjCRuntime.cpp.
|
static |
Definition at line 32 of file GNUstepObjCRuntime.h.
|
protected |
Definition at line 106 of file GNUstepObjCRuntime.h.
Referenced by HasReadObjCLibrary(), and ReadObjCLibrary().