binutils-gdb/gdb/tui
Tom de Vries 9d66d71cdd [gdb/tui] Fix fingerprint for cmd-only layout
I added a cmd-only layout:
...
(gdb) tui new-layout cmd cmd 1
...
and set it:
...
(gdb) layout cmd
...
which gave me the expect result: only the cmd window in the screen.

However, after going back to layout src:
...
(gdb) layout src
...
I got a source window with only one line in it, and the cmd window taking most
of the screen.

I traced this back to tui_set_layout, where for both the old and the new
layout the fingerprint of the cmd window in the layout is taken.  If the
fingerprint is the same, an effort will be done to preserve the command
window size.

The fingerprint is "VC" for both the old (cmd) and new (src) layouts, which
explains the behaviour.

I think this is essentially a bug in the finger print calculation, and it
should be "C" for the cmd layout.

Fix this by not adding a V or H in the fingerprint if the list size is one.

Tested on x86_64-linux.

Reviewed-By: Tom Tromey <tom@tromey.com>
2023-05-31 07:39:31 +02:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-command.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-data.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-data.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-disasm.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-disasm.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-file.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-file.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-hooks.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-hooks.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-interp.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui-io.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui-io.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-layout.c [gdb/tui] Fix fingerprint for cmd-only layout 2023-05-31 07:39:31 +02:00
tui-layout.h [gdb/tui] Fix fingerprint for cmd-only layout 2023-05-31 07:39:31 +02:00
tui-location.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-location.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-out.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-out.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-regs.c Remove a use of pagination_enabled 2023-02-14 13:54:44 -07:00
tui-regs.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-source.c [gdb/tui] Don't show line number for lines not in source file 2023-05-16 17:40:32 +02:00
tui-source.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-stack.c [gdb/tui] Fix length of status line string 2023-04-26 18:15:56 +02:00
tui-stack.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-win.c [gdb/tui] Fix buglet in tui_update_variables 2023-05-22 16:44:56 +02:00
tui-win.h [gdb/tui] Add maint set/show tui-left-margin-verbose 2023-04-13 00:18:12 +02:00
tui-wingeneral.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-wingeneral.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-winsource.c gdb: remove breakpoint_pointer_iterator 2023-05-25 09:52:22 -04:00
tui-winsource.h [gdb/tui] Fix left margin in disassembly window 2023-04-13 00:18:12 +02:00
tui.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui.h gdb/tui: more debug output 2023-01-27 16:20:10 +00:00