From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6997 invoked by alias); 12 Jan 2012 23:42:58 -0000 Received: (qmail 6989 invoked by uid 22791); 12 Jan 2012 23:42:58 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_FRT_PROFILE2,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 23:42:44 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0CNghIk000843 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jan 2012 18:42:43 -0500 Received: from host2.jankratochvil.net (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0CNgdeJ023347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jan 2012 18:42:41 -0500 Date: Thu, 12 Jan 2012 23:55:00 -0000 From: Jan Kratochvil To: Paul Pluzhnikov Cc: Doug Evans , gdb-patches@sourceware.org Subject: Re: [patch] Fix for PR gdb/9538 (loading of separate debuginfo and symlinks). Message-ID: <20120112234239.GA6964@host2.jankratochvil.net> References: <20120112030648.14DBE190AFD@elbrus2.mtv.corp.google.com> <20120112212959.GA24491@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-01/txt/msg00453.txt.bz2 On Fri, 13 Jan 2012 00:26:29 +0100, Paul Pluzhnikov wrote: > If there was an existing HAVE_LSTAT facility, I would definitely be for > using it here. But I am not sufficiently proficient with configury to add > it myself. If you find it useful here is a patch. For lstat it is AFAIK simple. Thanks, Jan gdb/ 2012-01-12 Jan Kratochvil * configure.ac (AC_CHECK_FUNCS): Add lstat. * configure: Regenerate. * config.in: Regenerate. --- gdb/configure.ac 4 Jan 2012 08:17:00 -0000 1.152 +++ gdb/configure.ac 12 Jan 2012 23:40:36 -0000 @@ -1059,7 +1059,7 @@ AC_CHECK_FUNCS([canonicalize_file_name r getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \ sigaction sigprocmask sigsetmask socketpair syscall \ ttrace wborder wresize setlocale iconvlist libiconvlist btowc \ - setrlimit getrlimit posix_madvise waitpid]) + setrlimit getrlimit posix_madvise waitpid lstat]) AM_LANGINFO_CODESET # Check the return and argument types of ptrace. No canned test for --- gdb/configure 12 Jan 2012 23:38:47 -0000 1.337 +++ gdb/configure 12 Jan 2012 23:40:34 -0000 @@ -12918,7 +12918,7 @@ for ac_func in canonicalize_file_name re getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \ sigaction sigprocmask sigsetmask socketpair syscall \ ttrace wborder wresize setlocale iconvlist libiconvlist btowc \ - setrlimit getrlimit posix_madvise waitpid + setrlimit getrlimit posix_madvise waitpid lstat do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" --- gdb/config.in 12 Jan 2012 23:38:47 -0000 1.130 +++ gdb/config.in 12 Jan 2012 23:40:28 -0000 @@ -260,6 +260,9 @@ /* Define to 1 if the system has the type `long long int'. */ #undef HAVE_LONG_LONG_INT +/* Define to 1 if you have the `lstat' function. */ +#undef HAVE_LSTAT + /* Define if has lwpid_t. */ #undef HAVE_LWPID_T