Skip to content

[lldb] max_return_elements parameter not used in SBCommandInterpreter::HandleCompletionWithDescriptions #135553

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

Closed
eronnen opened this issue Apr 13, 2025 · 1 comment · Fixed by #135565
Labels

Comments

@eronnen
Copy link
Contributor

eronnen commented Apr 13, 2025

SBCommandInterpreter::HandleCompletionWithDescriptions potentially can return more than max_return_elements completions, can cause a major slowdown when trying to complete a breakpoint statement for a program with a lot of symbols

@llvmbot
Copy link
Member

llvmbot commented Apr 13, 2025

@llvm/issue-subscribers-lldb

Author: Ely Ronnen (eronnen)

`SBCommandInterpreter::HandleCompletionWithDescriptions` potentially can return more than `max_return_elements` completions, can cause a major slowdown when trying to complete a breakpoint statement for a program with a lot of symbols

JDevlieghere pushed a commit that referenced this issue Apr 23, 2025
- Adding `max_return_elements` field to `CompletionRequest`.
- adding maximum checks to `SymbolCompleter` and `SourceFileCompleter`.

Fixes #135553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants