binutils-gdb/gdb/tui
Tom Tromey 22cc388e2b Don't erase TUI source window when switching focus
PR tui/26719 points out that switching the focus can erase the TUI
source window.  This is a regression introduced by the patch to switch
the source window to using a pad.

This patch fixes the bug by arranging to call prefresh whenever the
window is refreshed.

2020-10-19  Tom Tromey  <tromey@adacore.com>

	PR tui/26719
	* tui/tui-winsource.h (struct tui_source_window_base)
	<refresh_window>: Rename from refresh_pad.
	* tui/tui-winsource.c (tui_source_window_base::refresh_window):
	Rename from refresh_pad.
	(tui_source_window_base::show_source_content)
	(tui_source_window_base::do_scroll_horizontal): Update.

gdb/testsuite/ChangeLog
2020-10-19  Tom Tromey  <tromey@adacore.com>

	PR tui/26719
	* gdb.tui/list.exp: Check source window contents after focus
	change.
2020-10-19 13:45:24 -06:00
..
ChangeLog-1998-2003
tui-command.c
tui-command.h
tui-data.c Don't let TUI focus on locator 2020-09-24 12:25:59 -06:00
tui-data.h Don't let TUI focus on locator 2020-09-24 12:25:59 -06:00
tui-disasm.c Use a curses pad for source and disassembly windows 2020-09-27 20:30:32 -06:00
tui-disasm.h
tui-file.c
tui-file.h
tui-hooks.c
tui-hooks.h
tui-interp.c
tui-io.c gdb: give names to event loop file handlers 2020-10-02 14:46:56 -04:00
tui-io.h Use a curses pad for source and disassembly windows 2020-09-27 20:30:32 -06:00
tui-layout.c Remove tui_gen_win_info 2020-07-01 21:21:17 -06:00
tui-layout.h Remove tui_gen_win_info 2020-07-01 21:21:17 -06:00
tui-out.c
tui-out.h
tui-regs.c Remove target_has_registers macro 2020-09-28 19:52:21 -06:00
tui-regs.h Don't derive tui_data_item_window from tui_gen_win_info 2020-07-01 21:21:15 -06:00
tui-source.c Use a curses pad for source and disassembly windows 2020-09-27 20:30:32 -06:00
tui-source.h Use a curses pad for source and disassembly windows 2020-09-27 20:30:32 -06:00
tui-stack.c Move some code out of tui-data.h 2020-07-01 21:21:13 -06:00
tui-stack.h Don't let TUI focus on locator 2020-09-24 12:25:59 -06:00
tui-win.c gdb: give names to async event/signal handlers 2020-10-02 14:47:06 -04:00
tui-win.h Remove unnecessary TUI declarations 2020-06-17 20:07:04 -06:00
tui-wingeneral.c Remove tui_gen_win_info 2020-07-01 21:21:17 -06:00
tui-wingeneral.h
tui-winsource.c Don't erase TUI source window when switching focus 2020-10-19 13:45:24 -06:00
tui-winsource.h Don't erase TUI source window when switching focus 2020-10-19 13:45:24 -06:00
tui.c
tui.h