This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 12/66] Don't use TUI_DISASM_WIN in tui_disasm_window method
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sun, 23 Jun 2019 16:42:35 -0600
- Subject: [PATCH 12/66] Don't use TUI_DISASM_WIN in tui_disasm_window method
- References: <20190623224329.16060-1-tom@tromey.com>
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-23 Tom Tromey <tom@tromey.com>
* tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
"this", not TUI_DISASM_WIN.
---
gdb/ChangeLog | 5 +++++
gdb/tui/tui-disasm.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c
index 838f36cf295..efb9d1cb628 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);
}
}
--
2.17.2