Skip to content

[lldb] Make leading $-prefix optional in swift demangle #4054

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

Change language swift demangle to accept swift symbols that don't have a leading $. This matches the behavior of the command line swift-demangle tool (see swift-demangle.cpp#L394-L396).

This makes it more convenient to copy and paste symbols, because a double click on text doesn't select the $.

While updating this command, I also replaced lldb's custom node tree printing function with Swift's getNodeTreeAsString.

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test macOS Platform

@kastiglione kastiglione merged commit 4facf96 into stable/20211026 Mar 11, 2022
@kastiglione kastiglione deleted the lldb-Make-leading-prefix-optional-in-swift-demangle branch March 11, 2022 23:11
kastiglione added a commit that referenced this pull request Mar 24, 2022
Change `language swift demangle` to accept swift symbols that don't have a leading `$`. This matches the behavior of the command line `swift-demangle` tool (see [swift-demangle.cpp#L394-L396](https://github.com/apple/swift/blob/09cdd36c0ad480e68575db54e4b16fc47add46dc/tools/swift-demangle/swift-demangle.cpp#L394-L396)).

This makes it more convenient to copy and paste symbols, because a double click on text doesn't select the `$`.

While updating this command, I also replaced lldb's custom node tree printing function with Swift's `getNodeTreeAsString`.

(cherry picked from commit 4facf96)
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