Skip to content

Respect the module ABI name when mangling for the debugger #73119

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

augusto2112
Copy link
Contributor

The mangled name produced for the debugger should match the one emitted in reflection metadata, otherwise LLDB will not be able to lookup types when the module is compiled with the -module-abi-name flag.

rdar://125848324
(cherry picked from commit 01bd68e)

Explanation: LLDB needs the mangled names of types stored in debug info to match those in reflection metadata, otherwise it won't be able to look up those types.
Scope: Small.
Issue: rdar://125848324
Original PRs: https://github.com/apple/swift/pull/72335 & https://github.com/apple/swift/pull/72624
Risk: Low, this only debugging and when swift-programs are compiled with -module-abi-name.
Testing: Added DebugInfo/module_abi_name.swift
Reviewer: @adrian-prantl

The mangled name produced for the debugger should match the one emitted
in reflection metadata, otherwise LLDB will not be able to lookup types
when the module is compiled with the -module-abi-name flag.

rdar://125848324
(cherry picked from commit 01bd68e)
@augusto2112 augusto2112 requested a review from a team as a code owner April 18, 2024 21:42
@augusto2112
Copy link
Contributor Author

@swift-ci test

1 similar comment
@augusto2112
Copy link
Contributor Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit f36098a into swiftlang:release/6.0 Apr 20, 2024
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