Skip to content

[lldb] Make private type reflection metadata available from the file … #10818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

adrian-prantl
Copy link

…cache

This fixes a bug in LLDB's file cache. Private types have anonymous context descriptors, which are just a string that is the metadata pointer in hex. This is a problem when the meatdata was read from a file because then the address isn't comparable against the same type constructed from in-process memory. This patch fixes this by implementing a new hook to canonicalize file addresses to in-process addresses in MemoryReader.

rdar://151330005
(cherry picked from commit d86ea4e)

…cache

This fixes a bug in LLDB's file cache. Private types have anonymous
context descriptors, which are just a string that is the metadata
pointer in hex. This is a problem when the meatdata was read from a
file because then the address isn't comparable against the same type
constructed from in-process memory. This patch fixes this by
implementing a new hook to canonicalize file addresses to in-process
addresses in MemoryReader.

rdar://151330005
(cherry picked from commit d86ea4e)
@adrian-prantl adrian-prantl requested a review from a team as a code owner June 9, 2025 15:22
@adrian-prantl
Copy link
Author

test with swiftlang/swift#82109
@swift-ci test

@adrian-prantl adrian-prantl merged commit cdb3381 into swiftlang:swift/release/6.2 Jun 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants