The variable last_line_listed is never set when print_source_lines_base is
called in TUI mode, so the search always started from the last line printed
outside of TUI mode.
gdb/ChangeLog:
2020-01-06 Hannes Domani <
[email protected]>
* source.c (print_source_lines_base): Set last_line_listed.
+
+ * source.c (print_source_lines_base): Set last_line_listed.
+
* tui/tui-disasm.c: Remove trailing spaces.
loc->set (s, line);
first_line_listed = line;
+ last_line_listed = line;
/* If printing of source lines is disabled, just print file and line
number. */