[3/6] Remove a call to show_source_line from TUI

Message ID 20200627212051.6155-4-tom@tromey.com
State New
Headers show
Series
  • Handle UTF-8 in TUI source windows
Related show

Commit Message

Tom Tromey June 27, 2020, 9:20 p.m.
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-06-27  Tom Tromey  <tom@tromey.com>

	* tui/tui-winsource.c
	(tui_source_window_base::set_is_exec_point_at): Don't call
	show_source_line.
---
 gdb/ChangeLog           | 6 ++++++
 gdb/tui/tui-winsource.c | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.17.2

Patch

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++;
     }