Fix search in TUI
authorHannes Domani <ssbssa@yahoo.de>
Sun, 22 Dec 2019 13:58:22 +0000 (14:58 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Mon, 6 Jan 2020 16:14:13 +0000 (17:14 +0100)
commit8b7fcda2744145f2380af01c9db8e11986f7af6d
tree4b175d3a9729e16692fbe0c7f20ba6e8a51b91d5
parentd2dbcb18c6a44595a2034aa73a1ad7b60df114d3
Fix search in TUI

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  <ssbssa@yahoo.de>

* source.c (print_source_lines_base): Set last_line_listed.
gdb/ChangeLog
gdb/source.c