From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25777 invoked by alias); 19 Mar 2002 18:29:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25654 invoked from network); 19 Mar 2002 18:29:42 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 19 Mar 2002 18:29:42 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 82EA03DAB; Tue, 19 Mar 2002 13:29:41 -0500 (EST) Message-ID: <3C978395.9040306@cygnus.com> Date: Tue, 19 Mar 2002 10:29:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] gdb_realpath causes problems with GVD References: <20020319171236.D6465@act-europe.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00355.txt.bz2 Joel, I suspect you're right. Two comments: I think gdb_realpath() needs a re-name - it no longer implements realpath() semantics. xfullpath() comes to mind (`x' for `xmalloc', `fullpath' cos it is close to realpath :-) (Better ideas? Does libiberty already provide an equivalent?) I don't think trying to rewriting the gdb_realpath() autoconfigury magic is a good idea (the rewrite as two comile errors). Instead just assume that gdb_realpath() works and use that, concat() and xfree(). I think the first rule of autoconf is, if it ain't `broke' don't fix it :-)(1) enjoy, Andrew (1) Yes, I know, I've got that NULL canonicalize patch to commit :-)