From ae4393e22cee036eddfa19287cfe774d5f01bb7c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 13 Nov 2019 00:16:39 -0700 Subject: [PATCH] Remove a call to update_exec_info tui_show_frame_info calls update_exec_info after calling erase_source_content, but there's no need to do this, as erase_source_content already clears the exec info. gdb/ChangeLog 2019-12-20 Tom Tromey * tui/tui-stack.c (tui_show_frame_info): Don't call update_exec_info. Change-Id: I63d658561028ac1bc0a0a2b7ac17da1b9c6134fe --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-stack.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1034aa85fe2..85212286df3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-12-20 Tom Tromey + + * tui/tui-stack.c (tui_show_frame_info): Don't call + update_exec_info. + 2019-12-20 Tom Tromey * tui/tui.c (tui_enable): Call tui_display_main. diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 4f6fe8ebdaf..f42bd836d20 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -362,10 +362,7 @@ tui_show_frame_info (struct frame_info *fi) return 0; for (struct tui_source_window_base *win_info : tui_source_windows ()) - { - win_info->erase_source_content (); - win_info->update_exec_info (); - } + win_info->erase_source_content (); return 1; } -- 2.30.2