binutils-gdb/gdb/testsuite/lib
Tom Tromey 9ae6bf640d gdb: Fix scrolling in TUI
Hannes Domani pointed out that my previous patch to fix the "list"
command in the TUI instead broke vertical scrolling.  While looking at
this, I found that do_scroll_vertical calls print_source_lines, which
seems like a very roundabout way to change the source window.  This
patch removes this oddity and fixes the bug at the same time.

I've added a new test case.  This is somewhat tricky, because the
obvious approach of sending a dummy command after the scroll did not
work -- due to how the TUI works, sennding a command causes the scroll
to take effect.

gdb/ChangeLog
2019-12-22  Tom Tromey  <tom@tromey.com>

	PR tui/18932:
	* tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
	update_source_window, not print_source_lines.

gdb/testsuite/ChangeLog
2019-12-22  Tom Tromey  <tom@tromey.com>

	PR tui/18932:
	* lib/tuiterm.exp (Term::wait_for): Rename from _accept.  Return a
	meangingful value.
	(Term::command, Term::resize): Update.
	* gdb.tui/basic.exp: Add scrolling test.

Change-Id: I9636a7c8a8cade37431c6165ee996a9d556ef1c8
2020-01-09 23:11:46 +00:00
..
ada.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
append_gdb_boards_dir.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
build-piece.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cache.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cl_util.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cl_util.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
compile-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
compiler.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
compiler.cc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
completion-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cp-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
d-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
data-structures.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dtrace.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
dwarf.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
fortran.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
future.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-guile.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-python.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-utils.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdbserver-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gen-perf-test.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gnat_debug_info_test.adb [PATCH] Adjust test gdb.ada/ptype_tagged_param.exp for when GNAT runtime does not have debug info 2019-12-27 21:02:35 -05:00
go.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
memory.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
objc.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
opencl.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
opencl_hostapp.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
opencl_kernel.cl
pascal.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
pdtrace.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
perftest.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
prelink-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
prompt.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
range-stepping-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
read1.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
rust-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
selftest-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
set_unbuffered_mode.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sym-info-cmds.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
trace-support.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tuiterm.exp gdb: Fix scrolling in TUI 2020-01-09 23:11:46 +00:00
unbuffer_output.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
valgrind.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00