Skip to content

[lldb] Improve summary string handling of dollar chars #8961

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

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Jul 9, 2024

This improves the handling of $ (dollar) characters in summary strings in the
following ways:

  1. When a $ is not followed by an open paren ({), it should be treated as a literal
    character and preserved in the output. Previously, the dollar would be consumed by the
    parser and not shown in the output.
  2. When a $ is the last character of a format string, this change eliminates the
    infinite loop lldb would enter into.

rdar://131392446

see llvm#98190

(cherry picked from commit 10f3f06)

This improves the handling of `$` (dollar) characters in summary strings in the
following ways:

1. When a `$` is not followed by an open paren (`{`), it should be treated as a literal
character and preserved in the output. Previously, the dollar would be consumed by the
parser and not shown in the output.
2. When a `$` is the last character of a format string, this change eliminates the
infinite loop lldb would enter into.

rdar://131392446
(cherry picked from commit 10f3f06)
@kastiglione kastiglione changed the title [lldb] Improve summary string handling of dollar chars (#98190) [lldb] Improve summary string handling of dollar chars Jul 9, 2024
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione requested a review from JDevlieghere July 9, 2024 22:53
@kastiglione
Copy link
Author

Use ?w=1 to show only the non-whitespace changes: https://github.com/apple/llvm-project/pull/8961/files?w=1

@JDevlieghere JDevlieghere merged commit 713644c into swift/release/6.0 Jul 16, 2024
3 checks passed
@kastiglione kastiglione deleted the dl/lldb-Improve-summary-string-handling-of-dollar-chars-98190 branch August 5, 2024 16:32
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