Skip to content

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

@kastiglione
Copy link
Author

reverted upstream, closing this cherry pick

@kastiglione kastiglione deleted the dl/lldb-Fallback-to-expression-eval-when-Dump-of-variable-fails-in-dwim-print-151374 branch August 15, 2025 18:56
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