Don't use TUI_DISASM_WIN in tui_disasm_window method

The previous patch made it clear that the diassembly window scrolling
method was written to assume there could only ever be a single
disassembly window.  This changes that spot to use "this" rather than
the TUI_DISASM_WIN global.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

	* tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
	"this", not TUI_DISASM_WIN.
This commit is contained in:
Tom Tromey
2019-06-16 16:31:56 -06:00
parent 13446e05a3
commit f83d391c5a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
"this", not TUI_DISASM_WIN.
2019-06-25 Tom Tromey <tom@tromey.com> 2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (tui_horizontal_source_scroll): Don't * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't

View File

@ -393,7 +393,7 @@ tui_disasm_window::do_scroll_vertical
val.loa = LOA_ADDRESS; val.loa = LOA_ADDRESS;
val.u.addr = tui_find_disassembly_address (gdbarch, pc, dir); val.u.addr = tui_find_disassembly_address (gdbarch, pc, dir);
tui_update_source_window_as_is (TUI_DISASM_WIN, gdbarch, tui_update_source_window_as_is (this, gdbarch,
NULL, val, FALSE); NULL, val, FALSE);
} }
} }