diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-05 12:46:23 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-13 14:52:09 -0600 |
commit | fede52738f3ed3e375d84197380ae1a6cd35c6fe (patch) | |
tree | c97cb10592760d6e27bee501e02e048f9917d32d /gdb/tui/tui-layout.c | |
parent | 22c3f4909af125b457564db66e3cb3c56cb9abd3 (diff) | |
download | gdb-fede52738f3ed3e375d84197380ae1a6cd35c6fe.zip gdb-fede52738f3ed3e375d84197380ae1a6cd35c6fe.tar.gz gdb-fede52738f3ed3e375d84197380ae1a6cd35c6fe.tar.bz2 |
Delete invisible TUI windows
This changes the TUI so that when the layout changes, any windows that
are invisible are now deleted. This makes it simpler to understand
window lifetimes.
gdb/ChangeLog
2019-08-13 Tom Tromey <tom@tromey.com>
* tui/tui-win.c (tui_resize_all): Call
tui_delete_invisible_windows.
* tui/tui-layout.c (show_layout): Call
tui_delete_invisible_windows.
* tui/tui-data.h (tui_delete_invisible_windows): Declare.
* tui/tui-data.c (tui_delete_invisible_windows): New function.
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r-- | gdb/tui/tui-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index f4f834dc..2715d32 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -107,6 +107,8 @@ show_layout (enum tui_layout_type layout) default: break; } + + tui_delete_invisible_windows (); } } @@ -596,6 +598,7 @@ show_data (enum tui_layout_type new_layout) locator->make_visible (true); tui_show_locator_content (); tui_add_to_source_windows (base); + TUI_CMD_WIN->make_visible (true); current_layout = new_layout; } |