aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-stack.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-06 16:17:46 -0600
committerTom Tromey <tom@tromey.com>2019-08-15 12:29:28 -0600
commitc398c3d0b56823bb12718ae46a8c273b866ca246 (patch)
tree5e336430add83449e6b5ef7ca36195295faf2277 /gdb/tui/tui-stack.c
parente25d200487dba7dfdf92f638e4ef2aefd7bd7481 (diff)
downloadgdb-c398c3d0b56823bb12718ae46a8c273b866ca246.zip
gdb-c398c3d0b56823bb12718ae46a8c273b866ca246.tar.gz
gdb-c398c3d0b56823bb12718ae46a8c273b866ca246.tar.bz2
Remove tui_clear_source_content
tui_clear_source_content is not needed. Instead, the callers can call erase_source_content, which is also changed to clear the content vector. gdb/ChangeLog 2019-08-15 Tom Tromey <tom@tromey.com> * tui/tui-winsource.h (tui_clear_source_content): Don't declare. * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call tui_clear_source_content. (tui_clear_source_content): Remove. (tui_source_window_base::do_erase_source_content): Hoist call to content.clear(). * tui/tui-stack.c (tui_show_frame_info): Don't call tui_clear_source_content.
Diffstat (limited to 'gdb/tui/tui-stack.c')
-rw-r--r--gdb/tui/tui-stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 09ee87f..f61aa52 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -411,7 +411,7 @@ tui_show_frame_info (struct frame_info *fi)
tui_show_locator_content ();
for (struct tui_source_window_base *win_info : tui_source_windows ())
{
- tui_clear_source_content (win_info);
+ win_info->erase_source_content ();
win_info->update_exec_info ();
}