diff options
author | Tom Tromey <tromey@adacore.com> | 2020-09-23 12:57:19 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-09-24 12:25:59 -0600 |
commit | b551a89f51504735e9979ac885a5784e21cfecef (patch) | |
tree | 508c40ffd9fabc399f80cb7987abdba626fc7e44 /gdb/testsuite | |
parent | 99bb393f1d107cf2c4016c486f85625d362027a7 (diff) | |
download | gdb-b551a89f51504735e9979ac885a5784e21cfecef.zip gdb-b551a89f51504735e9979ac885a5784e21cfecef.tar.gz gdb-b551a89f51504735e9979ac885a5784e21cfecef.tar.bz2 |
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".
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.tui/list.exp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c85f3ed..4184975 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-09-24 Tom Tromey <tromey@adacore.com> + + PR tui/26638: + * gdb.tui/list.exp: Check output of "focus next". + 2020-09-23 Tom Tromey <tom@tromey.com> * gdb.dwarf2/intbits.exp: New file. diff --git a/gdb/testsuite/gdb.tui/list.exp b/gdb/testsuite/gdb.tui/list.exp index 77dbd69..576b33f 100644 --- a/gdb/testsuite/gdb.tui/list.exp +++ b/gdb/testsuite/gdb.tui/list.exp @@ -39,3 +39,4 @@ Term::check_contents "list main" "21 *return 0" # The following 'focus next' must be immediately after 'list main' to # ensure that GDB has a valid idea of what is currently focused. Term::command "focus next" +Term::check_contents "focus next" "Focus set to cmd window" |