diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-05 17:35:13 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-13 14:52:09 -0600 |
commit | 8270ac6229ac323fe7dfc1915b3f52d77df6bb9a (patch) | |
tree | 3f6ec7d90df58f2cebc96eae891408cb54d19d8c /gdb/tui/tui-winsource.c | |
parent | 7b56485db5187e6c63f330e1eb35f63b50327b74 (diff) | |
download | gdb-8270ac6229ac323fe7dfc1915b3f52d77df6bb9a.zip gdb-8270ac6229ac323fe7dfc1915b3f52d77df6bb9a.tar.gz gdb-8270ac6229ac323fe7dfc1915b3f52d77df6bb9a.tar.bz2 |
Turn tui_show_exec_info_content into a method
This changes tui_show_exec_info_content to be a method on
tui_source_window_base. As it is only called by other methods on this
class, it can be private.
gdb/ChangeLog
2019-08-13 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (struct tui_source_window_base)
<show_exec_info_content>: Declare.
(tui_show_exec_info_content): Don't declare.
* tui/tui-winsource.c
(tui_source_window_base::show_exec_info_content): Rename from
tui_show_exec_info_content.
(tui_source_window_base::update_exec_info): Update.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r-- | gdb/tui/tui-winsource.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 53113bd..c99e207 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -641,17 +641,17 @@ tui_source_window_base::set_exec_info_content () void -tui_show_exec_info_content (struct tui_source_window_base *win_info) +tui_source_window_base::show_exec_info_content () { - struct tui_exec_info_window *exec_info = win_info->execution_info; - const tui_exec_info_content *content = exec_info->get_content (); + struct tui_exec_info_window *exec_info = execution_info; + const tui_exec_info_content *exec_content = exec_info->get_content (); werase (exec_info->handle); - for (int cur_line = 1; cur_line <= win_info->content.size (); cur_line++) + for (int cur_line = 1; cur_line <= content.size (); cur_line++) mvwaddstr (exec_info->handle, cur_line, 0, - content[cur_line - 1]); + exec_content[cur_line - 1]); exec_info->refresh_window (); } @@ -676,7 +676,7 @@ void tui_source_window_base::update_exec_info () { set_exec_info_content (); - tui_show_exec_info_content (this); + show_exec_info_content (); } void |