aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-07-28 23:24:57 +0000
committerPedro Alves <palves@redhat.com>2010-07-28 23:24:57 +0000
commit110ed33992763d73a83114437ec0321cd90cd6f1 (patch)
treedfefcd5ba221bc34094b48dd4f1e401312416327 /gdb/tui
parent8d94ec8331367638a73b3e3b45128339c8d408ae (diff)
downloadgdb-110ed33992763d73a83114437ec0321cd90cd6f1.zip
gdb-110ed33992763d73a83114437ec0321cd90cd6f1.tar.gz
gdb-110ed33992763d73a83114437ec0321cd90cd6f1.tar.bz2
2010-07-28 Pedro Alves <pedro@codesourcery.com>
PR build/11848 * configure.ac: Check for wresize. * configure, config.in: Regenerate. * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call with HAVE_WRESIZE.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-win.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index bd94fa8..9f9f56e 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1403,9 +1403,11 @@ make_visible_with_new_height (struct tui_win_info *win_info)
case CMD_WIN:
win_info->detail.command_info.cur_line = 0;
win_info->detail.command_info.curch = 0;
+#ifdef HAVE_WRESIZE
wresize (TUI_CMD_WIN->generic.handle,
TUI_CMD_WIN->generic.height,
TUI_CMD_WIN->generic.width);
+#endif
mvwin (TUI_CMD_WIN->generic.handle,
TUI_CMD_WIN->generic.origin.y,
TUI_CMD_WIN->generic.origin.x);