Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[lldb] Remove the Swift-specific diagnosis frame callback #10685

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
merged 1 commit into from
May 15, 2025

Conversation

adrian-prantl
Copy link

This feature was originally added to communicate Swift module import failures in per-module SwiftASTContext instances powering "frame variable" to the user. We no longer rely on per-module SwiftASTContexts so it's no longer needed to store these diagnostics long-term to display them to all debuggers using the same lldb::Module. Instead this patch diagnoses them immediately using Debugger::ReportWarning/Error, and since they can only happen when setting up an expression evaluator, they will also be displayed in a timely manner.

rdar://150066908

This feature was originally added to communicate Swift module import
failures in per-module SwiftASTContext instances powering "frame
variable" to the user. We no longer rely on per-module
SwiftASTContexts so it's no longer needed to store these diagnostics
long-term to display them to all debuggers using the same
lldb::Module. Instead this patch diagnoses them immediately using
Debugger::ReportWarning/Error, and since they can only happen when
setting up an expression evaluator, they will also be displayed in a
timely manner.

rdar://150066908
@adrian-prantl adrian-prantl requested a review from a team as a code owner May 14, 2025 22:35
@adrian-prantl
Copy link
Author

@swift-ci test

Copy link

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the redline!

@adrian-prantl adrian-prantl merged commit 0062dc6 into swiftlang:swift/release/6.2 May 15, 2025
3 checks passed
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