aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-win.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 11:48:26 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 11:48:37 -0700
commit865a5aec04b504d33c83baf5e05f6cdf95ac9dc3 (patch)
treecb6615c32bc06e7163e5e58b717cad91f5a496ed /gdb/tui/tui-win.c
parente098d18cfc12c750616b7c934b9a9057f71f3553 (diff)
downloadgdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.zip
gdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.tar.gz
gdb-865a5aec04b504d33c83baf5e05f6cdf95ac9dc3.tar.bz2
Remove tui_delete_invisible_windows and tui_make_all_invisible
tui_delete_invisible_windows is only needed after applying a layout, and tui_make_all_invisible is only needed before applying a layout. This patch removes these functions, in favor of doing this management directly in tui_apply_current_layout. This is needed so that the lifetimes of non-built-in windows will be properly managed. gdb/ChangeLog 2020-02-22 Tom Tromey <tom@tromey.com> * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. * tui/tui-win.c (tui_resize_all): Don't call tui_delete_invisible_windows. * tui/tui-layout.c (tui_apply_current_layout): Delete windows when done. (tui_set_layout): Update. (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. * tui/tui-data.c (tui_delete_invisible_windows): Remove. Change-Id: Ia3603b021dcb7ec31700a4a32640cd09b00b8f3b
Diffstat (limited to 'gdb/tui/tui-win.c')
-rw-r--r--gdb/tui/tui-win.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index ea20275..ac314d7 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -550,7 +550,6 @@ tui_resize_all (void)
erase ();
clearok (curscr, TRUE);
tui_apply_current_layout ();
- tui_delete_invisible_windows ();
/* Turn keypad back on, unless focus is in the command
window. */
if (win_with_focus != TUI_CMD_WIN)