This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: declare canonicalize_file_name
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 14 Mar 2002 17:33:29 -0500
- Subject: Re: declare canonicalize_file_name
- References: <20020314132845.A25190@redhat.com>
> 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)