binutils-gdb/gdb/testsuite/gdb.tui
Andrew Burgess f5a7c406b1 gdb/tui: Link source and assembler scrolling .... again
Until recently when the source window was scrolled the assembler
window would scroll in sync - keeping the disassembly for the current
line in view.

This was broken in commit:

  commit b4b49dcbff
  Date:   Wed Nov 13 16:47:58 2019 -0700

      Don't call tui_show_source from tui_ui_out

This commit restores the synchronised scrolling and also maintains the
horizontal scroll within the source view when it is vertically
scrolled, something that was broken before.

This commit does not mean that scrolling the assembler view scrolls
the source view.  The connection this way never existed, though maybe
it should, but I'll leave adding this feature for a separate commit.

gdb/ChangeLog:

	* tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
	all source windows, and maintain horizontal scroll status while
	doing so.

gdb/testsuite/ChangeLog:

	* gdb.tui/basic.exp: Add more scrolling tests.

Change-Id: I250114a3bc670040a6a759d41905776771b2f818
2020-01-09 23:11:47 +00:00
..
basic.exp gdb/tui: Link source and assembler scrolling .... again 2020-01-09 23:11:47 +00:00
completion.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
corefile-run.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
empty.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
list-before.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
list.exp gdb: use tui_set_layout not show_layout to fix window focus 2020-01-05 21:49:05 +00:00
main.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
regs.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
resize.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-disasm-long-lines.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-disasm-long-lines.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-layout-asm.exp gdb/tui: Fix 'layout asm' before the inferior has started 2020-01-09 23:11:45 +00:00
tui-layout.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-layout.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tui-nl-filtered-output.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
winheight.exp Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00