This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: declare canonicalize_file_name
> On Thu, Mar 14, 2002 at 05:33:29PM -0500, Andrew Cagney wrote:
>
>> I believe RichardE's fixed this (or will when he wakes up :-). GDB
>> should have been using realpath() in preference to
>> canonicalize_file_name() .
>
>
> The problem will still hold with canonicalize_file_name
> should it be used.
>
> Of course, since it's specific to glibc, and glibc also
> provides realpath, it won't ever be used. Why not remove
> support for it then?
The call was only just added for the hurd :-( Hmm,
http://sources.redhat.com/ml/gdb-patches/2002-02/msg00631.html
Oops, ulgh! if RichardE tweeks to code (as I suggested) to simply prefer
realpath() it will break the hurd again. I think prefering realpath()
is correct (only use an obscure function when forced too) but that logic
is going to need to be scrambled a bit more :-(.
RichardE, I guess another re-think.
Andrew