Message ID | 20191222140316.4044-1-ssbssa@yahoo.de |
---|---|
State | New |
Headers | show |
>>>>> "Hannes" == Hannes Domani via gdb-patches <gdb-patches@sourceware.org> writes:
Hannes> The variable last_line_listed is never set when print_source_lines_base is
Hannes> called in TUI mode, so the search always started from the last line printed
Hannes> outside of TUI mode.
Hannes> gdb/ChangeLog:
Hannes> 2019-12-22 Hannes Domani <ssbssa@yahoo.de>
Hannes> * source.c (print_source_lines_base): Set last_line_listed.
Thanks, this is ok.
Tom
Am Montag, 6. Januar 2020, 17:10:42 MEZ hat Tom Tromey <tom@tromey.com> Folgendes geschrieben: > >>>>> "Hannes" == Hannes Domani via gdb-patches <gdb-patches@sourceware.org> writes: > > Hannes> The variable last_line_listed is never set when print_source_lines_base is > Hannes> called in TUI mode, so the search always started from the last line printed > Hannes> outside of TUI mode. > > Hannes> gdb/ChangeLog: > > Hannes> 2019-12-22 Hannes Domani <ssbssa@yahoo.de> > > Hannes> * source.c (print_source_lines_base): Set last_line_listed. > > Thanks, this is ok. Pushed, thanks.
diff --git a/gdb/source.c b/gdb/source.c index f5cd2a37e4..a6726f14c4 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. */