summaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-24 16:43:08 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-24 16:43:08 +0000
commit89df2d9dcf6c19d05c871e426f75af53cd740cc4 (patch)
tree165d91698a15fcb4cbd3bba6f082b38b1901e560 /gdb/tui/tui.c
parent9123efeef4ee9151b69af360868a91ce7750643f (diff)
downloadgdb-89df2d9dcf6c19d05c871e426f75af53cd740cc4.tar.gz
* tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
is the size of command window. (tuiResizeAll): Call it instead of init_page_info. * tui.c (tui_enable): Call it to resize to TUI command window. (tui_disable): Likewise for plain screen.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 33232a50cdb..8ead02f5b0d 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -262,6 +262,7 @@ tui_enable (void)
tui_version = 1;
tui_active = 1;
refresh ();
+ tui_update_gdb_sizes ();
}
/* Leave the tui mode.
@@ -286,6 +287,7 @@ tui_disable (void)
tui_version = 0;
tui_active = 0;
+ tui_update_gdb_sizes ();
}
/* Wrapper on top of free() to ensure that input address