From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18748 invoked by alias); 14 Mar 2002 23:29:09 -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 18532 invoked from network); 14 Mar 2002 23:29:06 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 14 Mar 2002 23:29:06 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B60EC3EAD; Thu, 14 Mar 2002 17:33:29 -0500 (EST) Message-ID: <3C912539.4010009@cygnus.com> Date: Thu, 14 Mar 2002 15: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: Richard Henderson Cc: gdb-patches@sources.redhat.com Subject: Re: declare canonicalize_file_name References: <20020314132845.A25190@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00223.txt.bz2 > GDB uses canonicalize_file_name if it detects it in libc, > but doesn't define _GNU_SOURCE to get it declared. This > results in the compiler thinking that the function returns > an integer, which results in the pointer value being > truncated on ia64. > > I figured providing a declaration was safer than forcing > _GNU_SOURCE. I believe RichardE's fixed this (or will when he wakes up :-). GDB should have been using realpath() in preference to canonicalize_file_name() . enjoy, Andrew (See gdb/409)