Skip to content

[lldb] Fallback to expression eval when Dump of variable fails in dwim-print (#151374) #11099

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

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Jul 31, 2025

Previously, when dwim-print finds a frame variables, it returns immediately after
calling Dump, even if Dump returns an error. This is most likely to happen when
evaluating an object description, ie po.

This changes dwim-print to continue on to expression evaluation when Dumping a
variable returns an error . This is to allow for diagnostics that match expression.

(cherry picked from commit f23c10f)

rdar://134291640

…m-print (llvm#151374)

Previously, when dwim-print finds a frame variables, it returns immediately after
calling `Dump`, even if `Dump` returns an error. This is most likely to happen when
evaluating an object description, ie `po`.

This changes dwim-print to continue on to expression evaluation when `Dump`ing a
variable returns an error . This is to allow for diagnostics that match `expression`.

(cherry picked from commit f23c10f)
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione requested a review from a team as a code owner July 31, 2025 22:21
@kastiglione
Copy link
Author

@swift-ci test windows

3 similar comments
@kastiglione
Copy link
Author

@swift-ci test windows

@kastiglione
Copy link
Author

@swift-ci test windows

@kastiglione
Copy link
Author

@swift-ci test windows

@kastiglione
Copy link
Author

This will likely be aborted in favor of llvm#152417

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