aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-disasm.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-12 17:40:33 -0700
committerTom Tromey <tom@tromey.com>2019-12-20 09:15:52 -0700
commit57e4b379e96383c4c7ee0aa0bb9b81018688f47d (patch)
tree5b6970a79ed4b5c34ca8209227fbf26d3d8e52af /gdb/tui/tui-disasm.c
parent61c33f105c71d27386e5b3cc6e1c5f71efe7ed01 (diff)
downloadgdb-57e4b379e96383c4c7ee0aa0bb9b81018688f47d.zip
gdb-57e4b379e96383c4c7ee0aa0bb9b81018688f47d.tar.gz
gdb-57e4b379e96383c4c7ee0aa0bb9b81018688f47d.tar.bz2
Use start_line_or_addr in TUI windows
A few spots in the TUI source and disassembly windows referred to content[0], where start_line_or_addr is equivalent. This patch makes this substitution. gdb/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * tui/tui-winsource.c (tui_source_window_base::refill): Use start_line_or_addr. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use start_line_or_addr. * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use start_line_or_addr. Change-Id: I1fa807321cd7ad88b3cc5e41cc50f4d4e2d46271
Diffstat (limited to 'gdb/tui/tui-disasm.c')
-rw-r--r--gdb/tui/tui-disasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c
index 080253c..8a46bba 100644
--- a/gdb/tui/tui-disasm.c
+++ b/gdb/tui/tui-disasm.c
@@ -325,7 +325,7 @@ tui_disasm_window::do_scroll_vertical (int num_to_scroll)
CORE_ADDR pc;
struct tui_line_or_address val;
- pc = content[0].line_or_addr.u.addr;
+ pc = start_line_or_addr.u.addr;
if (num_to_scroll >= 0)
num_to_scroll++;
else