aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2019-12-22 14:58:22 +0100
committerHannes Domani <ssbssa@yahoo.de>2020-01-06 17:14:13 +0100
commit8b7fcda2744145f2380af01c9db8e11986f7af6d (patch)
tree4b175d3a9729e16692fbe0c7f20ba6e8a51b91d5 /gdb/source.c
parentd2dbcb18c6a44595a2034aa73a1ad7b60df114d3 (diff)
downloadgdb-8b7fcda2744145f2380af01c9db8e11986f7af6d.zip
gdb-8b7fcda2744145f2380af01c9db8e11986f7af6d.tar.gz
gdb-8b7fcda2744145f2380af01c9db8e11986f7af6d.tar.bz2
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.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 7230c77..1bc98d3 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1232,6 +1232,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
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. */