Skip to content

[cherry-pick][lldb] Cherry pick arrm64e swift async unwinding fixes #10689

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

felipepiovezan
Copy link

Commits from : #10671

With arm64e, many more branches are generated, which cause the debugger
to stop more often while stepping. Among those stops are code regions
where the debugger gets confused about what is stored in the async
register stack slot.

This commit revives a heuristic that was previously used by default for
all architectures and that works in all PC addresses, but that
sacrifices unwinding o recursive functions. It is only used if the
target is arm64e.

(cherry picked from commit c964d56)
…geRuntime

This is required so that the breakpoint may be resolved correctly in
case the address has been signed.

(cherry picked from commit 2c318f1)
The code comparing async context addresses need to strip any pointer
authentication bits, otherwise the integer comparison will always fail.

(cherry picked from commit 6e361c7)
@felipepiovezan felipepiovezan merged commit e4aac33 into swiftlang:next May 15, 2025
@felipepiovezan felipepiovezan deleted the felipe/cherry-pick-arm64e branch May 15, 2025 14:34
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