Skip to content

[cherry-pick][stable/20230725] [LLDB] Fix crash when using tab completion on class variables #8350

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

Michael137
Copy link

We weren't checking to see if the partial_path was empty before adding
completions and this led to crashes when the class object and a variable
both start with the same substring.

(cherry picked from commit de5518836e16be3fbfce78394adc96d9bf70f2a5)

svs-quic and others added 2 commits March 7, 2024 12:35
…3234)

We weren't checking to see if the partial_path was empty before adding
completions and this led to crashes when the class object and a variable
both start with the same substring.

Fixes [llvm#81536](llvm#81536)

---------

Co-authored-by: Michael Buch <[email protected]>
(cherry picked from commit de55188)
Missed adding a . in the test check

(cherry picked from commit ee297a7)
@Michael137
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.

Thanks Michael!

@Michael137
Copy link
Author

@swift-ci test macOS

@Michael137 Michael137 merged commit eaa0e34 into swiftlang:stable/20230725 Mar 9, 2024
@Michael137 Michael137 deleted the bugfix/lldb-tab-completion-crash-to-20230725 branch March 9, 2024 23:30
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.

3 participants