Skip to content

[lldb] fix cropped demangled names in Swift backtraces #11068

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 2 commits into
base: swift/release/6.2
Choose a base branch
from

Conversation

charles-zablit
Copy link

@charles-zablit charles-zablit commented Jul 28, 2025

This PR fixes TestSwiftAsyncHiddenFrames.py which had been failing since #10710 was merged.

This PR introduces a new entity formatting attribute: function.name-qualifiers. It's a catch all for any characters between the function's name and its arguments/template arguments. For instance, for the closure below, in C.run is the name qualifier.

closure #1 in C.run<τ_0_0>(action=0x00000001000080c0 async function pointer to closure #1 @Sendable () async -> Swift.Int in static a.Main.main() async -> ())

This PR depends on:

@charles-zablit charles-zablit self-assigned this Jul 28, 2025
@charles-zablit charles-zablit requested a review from a team as a code owner July 28, 2025 15:12
@charles-zablit charles-zablit changed the title [draft] [lldb] fix cropped demangled names in Swift backtraces [lldb] fix cropped demangled names in Swift backtraces Aug 1, 2025
charles-zablit added a commit to llvm/llvm-project that referenced this pull request Aug 5, 2025
…#150999)

This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange`
and `NameQualifiersRange`. It also introduces the
`function.name-qualifiers` entity formatter which allows tracking
qualifiers between the name of a function and its arguments/template.

This will be used downstream in Swift but may have applications in C++:
swiftlang#11068.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Aug 5, 2025
…ledNameInfo (#150999)

This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange`
and `NameQualifiersRange`. It also introduces the
`function.name-qualifiers` entity formatter which allows tracking
qualifiers between the name of a function and its arguments/template.

This will be used downstream in Swift but may have applications in C++:
swiftlang/llvm-project#11068.
charles-zablit added a commit to charles-zablit/llvm-project that referenced this pull request Aug 5, 2025
…llvm#150999)

This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange`
and `NameQualifiersRange`. It also introduces the
`function.name-qualifiers` entity formatter which allows tracking
qualifiers between the name of a function and its arguments/template.

This will be used downstream in Swift but may have applications in C++:
swiftlang#11068.
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