Skip to content

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

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

Open
wants to merge 1 commit into
base: stable/20240723
Choose a base branch
from

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

…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
@adrian-prantl adrian-prantl requested a review from a team as a code owner June 6, 2025 23:48
@adrian-prantl
Copy link
Author

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

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.

1 participant