Skip to content

[lldb] Fix custom alignments of clang types which are members of Swift types being printed incorrectly #9246

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

Closed

Conversation

augusto2112
Copy link

This PR cherry-picks 2 changes from upstream LLVM ("Fix #pragma (packed, n) not emitting the alignment in debug info" and "[LLDB] Respect the DW_AT_alignment attribute.") and adds a test to ensure that Swift types who have a member which is a clang type with a custom alignment are printed correctly.

rdar://127785973

hokein and others added 2 commits September 11, 2024 11:07
Part of fixes for llvm#72913.

clang emits `DW_AT_alignment` attribute, however LLDB didn't respect it,
resulting in incorrect RecordDecls built by lldb.

This only fixes non-inheritance cases. The inheritance case will be
handled in a follow-up patch.

(cherry picked from commit 439b16e)
Debug info generation won't emit the alignment of types that have a
standard alignment. It was not taking into account the
that case.

rdar://127785973
(cherry picked from commit 3bf273f)
(cherry picked from commit 87205b39392cd96e71fb876f1d9a2d80675e95d0)
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link

You should probably do this on rebranch instead?

@augusto2112
Copy link
Author

Closing in favor of #9294

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.

3 participants