aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-source.c')
-rw-r--r--gdb/tui/tui-source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c
index 78afc62..113195d 100644
--- a/gdb/tui/tui-source.c
+++ b/gdb/tui/tui-source.c
@@ -147,14 +147,14 @@ tui_source_window::do_scroll_vertical (int num_to_scroll)
s = cursal.symtab;
l.loa = LOA_LINE;
- l.u.line_no = content[0].line_or_addr.u.line_no
+ l.u.line_no = start_line_or_addr.u.line_no
+ num_to_scroll;
const std::vector<off_t> *offsets;
if (g_source_cache.get_line_charpos (s, &offsets)
&& l.u.line_no > offsets->size ())
/* line = s->nlines - win_info->content_size + 1; */
/* elz: fix for dts 23398. */
- l.u.line_no = content[0].line_or_addr.u.line_no;
+ l.u.line_no = start_line_or_addr.u.line_no;
if (l.u.line_no <= 0)
l.u.line_no = 1;