<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/135553>135553</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb] max_return_elements parameter not used in SBCommandInterpreter::HandleCompletionWithDescriptions
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          eronnen
      </td>
    </tr>
</table>

<pre>
    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
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyckTFv2zAQhX8NtRxiSJQoWwOHxIbRzh06BifpLDEleQJ5iut_X0hN26VTJoLkew_37sOc3RSJrDIvylwKXGXmZClxjBSLnseH_fZy5hAwjl-jUFoSCSVVP6v6-QvG0dOZw-JJHMfvTuYL5SG5ZbtmWFgoikPvHzBghESypgiBE4HMGEG1ZcCfr7_fX8lToChZtSUMf1Oz0ufdPeCaCRACvnGC7Pk-8j3CfaYIkh4uTiD8x7gJ-0T4Y2EXBbKg7OFw4wQIS-IpYYC7kxkQPAvwDfIj9OxzMdp67OoOC7LVsWlMq-v6VMyW6u7YlIPucKyOnamMMWN_69tOI1VEZeGsLrUpm6qu2vpkTgeDzY1wuJVN35iy1aopKaDzB-_fw4HTVLicV7JVbYypC489-bzT0DrSHfZfpfUGJ9nN9NSvU1ZN6V2W_C9GnPgdo_djr8wF_rNXWDBh2PhBZIE10wguwucBF2vydhZZ8qbXV6Wvk5N57Q8DB6Wv23Qfx9OS-I0GUfq6d8pKXz9Kv1v9KwAA___zG99o">