diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-02 17:07:02 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:25 -0600 |
commit | 5104fe361d818a46b262b5d504f3d293c9a2b44a (patch) | |
tree | 2e6677c74b037797ea5da459cc3f1a0d0099305b /gdb/tui/tui-wingeneral.c | |
parent | daa15dde7202d948da694bdfe0df9e5294c7ee9a (diff) | |
download | gdb-5104fe361d818a46b262b5d504f3d293c9a2b44a.zip gdb-5104fe361d818a46b262b5d504f3d293c9a2b44a.tar.gz gdb-5104fe361d818a46b262b5d504f3d293c9a2b44a.tar.bz2 |
Move source window common to code to tui-winsource.[ch]
Like the previous rearranging patches, this moves the source and
disassembly window base class code to tui-winsource.[ch]. The
execution info window is also moved, because it is associated with
this base class.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (struct tui_exec_info_window)
(struct tui_source_window_base): Move from tui-data.h.
* tui/tui-winsource.c: Move many method definitions from
elsewhere. Remove "structuring" comments.
* tui/tui-wingeneral.c (tui_source_window_base::make_visible)
(tui_source_window_base::refresh_window): Move to
tui-winsource.c.
* tui/tui-win.c (tui_source_window_base::refresh_all)
(tui_source_window_base::update_tab_width)
(tui_source_window_base::set_new_height)
(tui_source_window_base::do_make_visible_with_new_height): Move to
tui-winsource.c.
* tui/tui-source.h: Update.
* tui/tui-source.c (tui_source_window_base::reset): Move to
tui-winsource.c.
* tui/tui-disasm.h: Update.
* tui/tui-data.h (struct tui_exec_info_window): Move to
tui-winsource.h.
(struct tui_source_window_base): Likewise.
* tui/tui-data.c (tui_source_window_base::clear_detail)
(tui_source_window_base, ~tui_source_window_base): Move to
tui-winsource.c.
Diffstat (limited to 'gdb/tui/tui-wingeneral.c')
-rw-r--r-- | gdb/tui/tui-wingeneral.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 5d632b6..a2e4886 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -166,15 +166,6 @@ tui_gen_win_info::make_visible (bool visible) } } -/* See tui-data.h. */ - -void -tui_source_window_base::make_visible (bool visible) -{ - execution_info->make_visible (visible); - tui_win_info::make_visible (visible); -} - /* Makes all windows invisible (except the command and locator windows). */ static void @@ -196,15 +187,6 @@ tui_make_all_invisible (void) make_all_visible (false); } -/* See tui-data.h. */ - -void -tui_source_window_base::refresh_window () -{ - execution_info->refresh_window (); - tui_win_info::refresh_window (); -} - /* Function to refresh all the windows currently displayed. */ void |