From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28658 invoked by alias); 28 Jul 2010 23:41:47 -0000 Received: (qmail 28648 invoked by uid 22791); 28 Jul 2010 23:41:46 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_MV,TW_VW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jul 2010 23:41:40 +0000 Received: (qmail 23691 invoked from network); 28 Jul 2010 23:41:38 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Jul 2010 23:41:38 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: PR build/11848 Date: Wed, 28 Jul 2010 23:41:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-24-generic; KDE/4.4.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201007290041.36004.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00535.txt.bz2 I've applied this to fix build fallout on hppa64-hpux from the new TUI resize code. -- Pedro Alves 2010-07-28 Pedro Alves 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. --- gdb/config.in | 3 +++ gdb/configure | 2 +- gdb/configure.ac | 2 +- gdb/tui/tui-win.c | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) Index: src/gdb/config.in =================================================================== --- src.orig/gdb/config.in 2010-07-28 13:14:06.000000000 +0100 +++ src/gdb/config.in 2010-07-28 23:54:20.000000000 +0100 @@ -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 Index: src/gdb/configure =================================================================== --- src.orig/gdb/configure 2010-07-28 13:14:06.000000000 +0100 +++ src/gdb/configure 2010-07-28 23:54:18.000000000 +0100 @@ -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` Index: src/gdb/configure.ac =================================================================== --- src.orig/gdb/configure.ac 2010-07-28 13:14:06.000000000 +0100 +++ src/gdb/configure.ac 2010-07-28 23:53:55.000000000 +0100 @@ -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 Index: src/gdb/tui/tui-win.c =================================================================== --- src.orig/gdb/tui/tui-win.c 2010-07-28 13:14:07.000000000 +0100 +++ src/gdb/tui/tui-win.c 2010-07-29 00:11:02.000000000 +0100 @@ -1403,9 +1403,11 @@ make_visible_with_new_height (struct tui 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);