Files
binutils-gdb/gdb/python
Jorenar aed5eee5a3 gdb/dap: fix completion request for empty strings
When DAP completion requests receives empty string to complete,
the script crashes due trying to access element -1 from list
being a result of `text.splitlines()` (which for `text == ""`
evaluates into empty list).

This patch adds simple check if `text` is populated, and when it
is not, skips transformations and assigns correct result directly.

Approved-By: Tom Tromey <tom@tromey.com>
2025-05-29 11:04:18 -06:00
..
2025-04-08 10:54:39 -06:00
2025-04-17 09:25:55 -06:00
2025-05-15 10:20:53 +02:00