aboutsummaryrefslogtreecommitdiff
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
parent8d94ec8331367638a73b3e3b45128339c8d408ae (diff)
downloadfsf-binutils-gdb-110ed33992763d73a83114437ec0321cd90cd6f1.zip
fsf-binutils-gdb-110ed33992763d73a83114437ec0321cd90cd6f1.tar.gz
fsf-binutils-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.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/config.in3
-rwxr-xr-xgdb/configure2
-rw-r--r--gdb/configure.ac2
-rw-r--r--gdb/tui/tui-win.c2
5 files changed, 15 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 096be2c..66e74f73 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2010-07-28 Tom Tromey <tromey@redhat.com>
PR python/11060:
diff --git a/gdb/config.in b/gdb/config.in
index 635b85b..7659181 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -697,6 +697,9 @@
/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK
+/* Define to 1 if you have the `wresize' function. */
+#undef HAVE_WRESIZE
+
/* Define to 1 if you have the `XML_StopParser' function. */
#undef HAVE_XML_STOPPARSER
diff --git a/gdb/configure b/gdb/configure
index bf93faf..35705e0 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12511,7 +12511,7 @@ fi
for ac_func in canonicalize_file_name realpath getrusage getuid \
getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair syscall \
- ttrace wborder setlocale iconvlist libiconvlist btowc \
+ ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
setrlimit getrlimit posix_madvise
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 324a2c2..7067d26 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -956,7 +956,7 @@ AC_FUNC_VFORK
AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
sigaction sigprocmask sigsetmask socketpair syscall \
- ttrace wborder setlocale iconvlist libiconvlist btowc \
+ ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
setrlimit getrlimit posix_madvise])
AM_LANGINFO_CODESET
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);