Don't let TUI focus on locator
authorTom Tromey <tromey@adacore.com>
Wed, 23 Sep 2020 18:57:19 +0000 (12:57 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 24 Sep 2020 18:25:59 +0000 (12:25 -0600)
commitb551a89f51504735e9979ac885a5784e21cfecef
tree508c40ffd9fabc399f80cb7987abdba626fc7e44
parent99bb393f1d107cf2c4016c486f85625d362027a7
Don't let TUI focus on locator

PR tui/26638 notes that the C-x o binding can put the focus on the
locator window.  However, this is not useful and did not happen
historically.  This patch changes the TUI to skip this window when
switching focus.

gdb/ChangeLog
2020-09-24  Tom Tromey  <tromey@adacore.com>

PR tui/26638:
* tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
method.
* tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
* tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
(tui_prev_win): Rewrite.

gdb/testsuite/ChangeLog
2020-09-24  Tom Tromey  <tromey@adacore.com>

PR tui/26638:
* gdb.tui/list.exp: Check output of "focus next".
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.tui/list.exp
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-stack.h