From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14893 invoked by alias); 28 Jul 2010 11:50:35 -0000 Received: (qmail 14881 invoked by uid 22791); 28 Jul 2010 11:50:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,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 11:50:23 +0000 Received: (qmail 4364 invoked from network); 28 Jul 2010 11:50:21 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Jul 2010 11:50:21 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [patch] Correct origin calculation of command line window in TUI mode Date: Wed, 28 Jul 2010 11:50:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-24-generic; KDE/4.4.2; x86_64; ; ) Cc: Balazs Kezes References: <201007272346.46299.pedro@codesourcery.com> In-Reply-To: <201007272346.46299.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007281250.19279.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/msg00474.txt.bz2 On Tuesday 27 July 2010 23:46:46, Pedro Alves wrote: > > On Tuesday 27 July 2010 23:38:02, Balazs Kezes wrote: > > Yeah, these 3 patches are not enough. There are two remaining modifications > > which need to be done: > > > 1) HAVE_RESIZE_TERM - to make sure ncurses knows about the terminal size. > > Somehow this needs to be added to the configuration. I'm not sure how to do > > this. Maybe I'll look into this sometime. > > I'll do this. (...) I've now applied this patch below. Thanks. -- Pedro Alves 2010-07-28 Pedro Alves * configure.ac: Check for resize_term. * configure, config.in: Regenerate. --- gdb/config.in | 3 +++ gdb/configure | 2 +- gdb/configure.ac | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) Index: src/gdb/configure.ac =================================================================== --- src.orig/gdb/configure.ac 2010-07-28 12:39:02.000000000 +0100 +++ src/gdb/configure.ac 2010-07-28 12:41:35.000000000 +0100 @@ -954,7 +954,7 @@ AC_FUNC_ALLOCA AC_FUNC_MMAP AC_FUNC_VFORK AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \ - getgid pipe poll pread64 sbrk setpgid setpgrp setsid \ + getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \ sigaction sigprocmask sigsetmask socketpair syscall \ ttrace wborder setlocale iconvlist libiconvlist btowc \ setrlimit getrlimit posix_madvise]) Index: src/gdb/configure =================================================================== --- src.orig/gdb/configure 2010-07-28 12:39:02.000000000 +0100 +++ src/gdb/configure 2010-07-28 12:41:35.000000000 +0100 @@ -12509,7 +12509,7 @@ $as_echo "#define HAVE_WORKING_FORK 1" > fi for ac_func in canonicalize_file_name realpath getrusage getuid \ - getgid pipe poll pread64 sbrk setpgid setpgrp setsid \ + getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \ sigaction sigprocmask sigsetmask socketpair syscall \ ttrace wborder setlocale iconvlist libiconvlist btowc \ setrlimit getrlimit posix_madvise Index: src/gdb/config.in =================================================================== --- src.orig/gdb/config.in 2010-07-28 12:39:02.000000000 +0100 +++ src/gdb/config.in 2010-07-28 12:41:35.000000000 +0100 @@ -461,6 +461,9 @@ /* Define to 1 if you have the `realpath' function. */ #undef HAVE_REALPATH +/* Define to 1 if you have the `resize_term' function. */ +#undef HAVE_RESIZE_TERM + /* Define to 1 if you have the `sbrk' function. */ #undef HAVE_SBRK