aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 16:31:56 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:28 -0600
commitf83d391c5aa3304faf8ef1384a6c64f082653260 (patch)
tree7c6a7318cf4b601d49732ee0780ed7cbb3789dca
parent13446e05a363db17f0140b1450fc7df509d2ca37 (diff)
downloadgdb-f83d391c5aa3304faf8ef1384a6c64f082653260.zip
gdb-f83d391c5aa3304faf8ef1384a6c64f082653260.tar.gz
gdb-f83d391c5aa3304faf8ef1384a6c64f082653260.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-disasm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 109cdd4..56b49cd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
declare.
* tui/tui-winsource.c
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c
index 838f36c..efb9d1c 100644
--- a/gdb/tui/tui-disasm.c
+++ b/gdb/tui/tui-disasm.c
@@ -393,7 +393,7 @@ tui_disasm_window::do_scroll_vertical
val.loa = LOA_ADDRESS;
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);
}
}