From: Tom Tromey Date: Mon, 28 Sep 2020 02:30:30 +0000 (-0600) Subject: Remove a call to show_source_line from TUI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c15c15c8d998af6676562d15b9a1f1dcac1fa3ea;p=binutils-gdb.git Remove a call to show_source_line from TUI This removes a call to show_source_line from tui_source_window_base. This call isn't needed because this function already calls the 'refill' method if the state changed. gdb/ChangeLog 2020-09-27 Tom Tromey * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at): Don't call show_source_line. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f2d04c26111..c835fdb14ad 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-09-27 Tom Tromey + + * tui/tui-winsource.c + (tui_source_window_base::set_is_exec_point_at): Don't call + show_source_line. + 2020-09-27 Tom Tromey * python/py-tui.c (class tui_py_window) : New diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index db0add99688..6723bad82cc 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -411,7 +411,6 @@ tui_source_window_base::set_is_exec_point_at (struct tui_line_or_address l) { changed = true; m_content[i].is_exec_point = new_state; - show_source_line (i + 1); } i++; }