mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[lldb] Fix up Objective-C ISA pointers
Support stripping the PAC bits from Objective-C ISA pointers in the Objective-C runtime plugin.
This commit is contained in:
@@ -1543,6 +1543,12 @@ AppleObjCRuntimeV2::GetClassDescriptor(ValueObject &valobj) {
|
||||
return objc_class_sp;
|
||||
|
||||
objc_class_sp = GetClassDescriptorFromISA(isa);
|
||||
if (!objc_class_sp) {
|
||||
if (ABISP abi_sp = process->GetABI())
|
||||
isa = abi_sp->FixCodeAddress(isa);
|
||||
objc_class_sp = GetClassDescriptorFromISA(isa);
|
||||
}
|
||||
|
||||
if (isa && !objc_class_sp) {
|
||||
Log *log = GetLog(LLDBLog::Process | LLDBLog::Types);
|
||||
LLDB_LOGF(log,
|
||||
|
||||
Reference in New Issue
Block a user