Skip to content

Commit 5b19506

Browse files
authored
Merge pull request #9565 from swiftlang/bugfix/lldb-objc-method-list-offset-fix-to-20240723
[cherry-pick] [lldb][ObjC] Fix method list entry offset calculation
2 parents 39d670c + 48448cd commit 5b19506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ bool ClassDescriptorV2::relative_list_entry_t::Read(Process *process,
394394
lldb::offset_t cursor = 0;
395395
uint64_t raw_entry = extractor.GetU64_unchecked(&cursor);
396396
m_image_index = raw_entry & 0xFFFF;
397-
m_list_offset = (int64_t)(raw_entry >> 16);
397+
m_list_offset = llvm::SignExtend64<48>(raw_entry >> 16);
398398
return true;
399399
}
400400

0 commit comments

Comments
 (0)