This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: declare canonicalize_file_name


> 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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]