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.
This commit is contained in:
parent
d2dbcb18c6
commit
8b7fcda274
2 changed files with 5 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue