diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-05 17:36:16 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-13 14:52:09 -0600 |
commit | e321e7ce753f27ca9664ca08a8314924b5771d61 (patch) | |
tree | 27f9ebf279c8d6a3569fdbdef8e3feffd1cd44fc /gdb/tui | |
parent | 8270ac6229ac323fe7dfc1915b3f52d77df6bb9a (diff) | |
download | gdb-e321e7ce753f27ca9664ca08a8314924b5771d61.zip gdb-e321e7ce753f27ca9664ca08a8314924b5771d61.tar.gz gdb-e321e7ce753f27ca9664ca08a8314924b5771d61.tar.bz2 |
Remove tui_erase_exec_info_content
One call to tui_erase_exec_info_content can be removed. This call is
not needed because the function in question then immediately sets the
execution info window contents.
Once this is done, tui_clear_exec_info_content is just a wrapper for
the only call to tui_erase_exec_info_content, so
tui_erase_exec_info_content can be renamed and the wrapper function
removed.
gdb/ChangeLog
2019-08-13 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (tui_erase_exec_info_content): Don't
declare.
* tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
call tui_erase_exec_info_content.
(tui_clear_exec_info_content): Rename from
tui_erase_exec_info_content.
(tui_clear_exec_info_content): Delete.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-winsource.c | 9 | ||||
-rw-r--r-- | gdb/tui/tui-winsource.h | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index c99e207..ed2af06 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -334,7 +334,6 @@ tui_source_window_base::refresh_all () { show_source_content (); check_and_display_highlight_if_needed (); - tui_erase_exec_info_content (this); update_exec_info (); } @@ -657,7 +656,7 @@ tui_source_window_base::show_exec_info_content () void -tui_erase_exec_info_content (struct tui_source_window_base *win_info) +tui_clear_exec_info_content (struct tui_source_window_base *win_info) { struct tui_gen_win_info *exec_info = win_info->execution_info; @@ -665,12 +664,6 @@ tui_erase_exec_info_content (struct tui_source_window_base *win_info) exec_info->refresh_window (); } -void -tui_clear_exec_info_content (struct tui_source_window_base *win_info) -{ - tui_erase_exec_info_content (win_info); -} - /* Function to update the execution info window. */ void tui_source_window_base::update_exec_info () diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h index c902ee0..d8a84b0 100644 --- a/gdb/tui/tui-winsource.h +++ b/gdb/tui/tui-winsource.h @@ -188,7 +188,6 @@ extern void tui_update_source_windows_with_line (struct symtab *, int); extern void tui_clear_source_content (struct tui_source_window_base *); extern void tui_erase_source_content (struct tui_source_window_base *); -extern void tui_erase_exec_info_content (struct tui_source_window_base *); extern void tui_clear_exec_info_content (struct tui_source_window_base *); extern void tui_alloc_source_buffer (struct tui_source_window_base *); |