binutils-gdb/gdb/tui
Tom Tromey cdaa6eb439 Simplify register display
This patch starts with the observation that the code in
tui_data_window::display_registers_from can all be replaced with a
call to resize.  To make this work propertly, it also changes
tui_display_register to be the "rerender" method on
tui_data_item_window.

The refresh_window method is needed due to the use of nested windows
here.  The ncurses man page makes it sound like this is not very well
supported; and experience bears this out: negelecting the touchwin
call in this path will cause the register window to blank when
switching focus.

gdb/ChangeLog
2019-08-30  Tom Tromey  <tom@tromey.com>

	* tui/tui-regs.h (struct tui_data_item_window) <rerender,
	refresh_window>: Declare.
	* tui/tui-regs.c (tui_data_window::display_registers_from): Call
	resize.
	(tui_data_item_window::rerender): Rename from
	tui_display_register.
	(tui_data_item_window::refresh_window): New method.
	* tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
	no-op.
2019-08-30 12:57:05 -06:00
..
ChangeLog-1998-2003
tui-command.c Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-command.h TUI resize unification 2019-08-15 14:17:11 -06:00
tui-data.c Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-data.h Remove NO_DATA_STRING 2019-08-30 12:57:02 -06:00
tui-disasm.c Remove the TUI execution info window 2019-08-16 14:17:36 -06:00
tui-disasm.h Some i18n fixes for the TUI 2019-08-20 16:22:03 -06:00
tui-file.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-file.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-hooks.c Change tui_check_register_values to be a method 2019-08-20 16:45:50 -06:00
tui-hooks.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-interp.c Remove tui_initialize_static_data 2019-08-15 12:29:28 -06:00
tui-io.c Change tui_data_item_window::content to be a unique_xmalloc_ptr 2019-08-20 16:45:50 -06:00
tui-io.h Change tui_data_item_window::content to be a unique_xmalloc_ptr 2019-08-20 16:45:50 -06:00
tui-layout.c Simplify register display 2019-08-30 12:57:05 -06:00
tui-layout.h Make tui_default_win_height static 2019-08-13 14:52:09 -06:00
tui-out.c Rename field_int to field_signed 2019-07-17 10:34:05 -06:00
tui-out.h Rename field_int to field_signed 2019-07-17 10:34:05 -06:00
tui-regs.c Simplify register display 2019-08-30 12:57:05 -06:00
tui-regs.h Simplify register display 2019-08-30 12:57:05 -06:00
tui-source.c Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-source.h Some i18n fixes for the TUI 2019-08-20 16:22:03 -06:00
tui-stack.c Move some defines to tui-stack.c 2019-08-20 16:45:50 -06:00
tui-stack.h TUI resize unification 2019-08-15 14:17:11 -06:00
tui-win.c Remove separate visibility flag 2019-08-16 11:28:33 -06:00
tui-win.h Introduce methods for scrolling 2019-06-25 07:48:28 -06:00
tui-wingeneral.c Remove some defines from tui-data.h 2019-08-20 16:45:50 -06:00
tui-wingeneral.h Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-winsource.c Remove the TUI execution info window 2019-08-16 14:17:36 -06:00
tui-winsource.h Remove the TUI execution info window 2019-08-16 14:17:36 -06:00
tui.c Remove separate visibility flag 2019-08-16 11:28:33 -06:00
tui.h Remove the TUI execution info window 2019-08-16 14:17:36 -06:00