gdb/tui: better filtering of tab completion results for focus command
authorAndrew Burgess <aburgess@redhat.com>
Tue, 20 Dec 2022 15:45:32 +0000 (15:45 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 25 Jan 2023 10:55:44 +0000 (10:55 +0000)
commit6db98f026e4dcd7ca9d069542a7bbb3f4539482b
treee7e9a8e099e40bb7232173197245b40c17bb6acc
parent6789344ab22f7fbce94a31297b994f85685b90c6
gdb/tui: better filtering of tab completion results for focus command

While working on the previous couple of commits, I noticed that the
'focus' command would happily suggest 'status' as a possible focus
completion, even though the 'status' window is non-focusable, and,
after the previous couple of commits, trying to focus the status
window will result in an error.

This commit improves the tab-completion results for the focus command
so that the status window is not included.
gdb/testsuite/gdb.tui/completion.exp
gdb/tui/tui-win.c