This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [sparc-solaris] unexpected warning when starting program
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 13 Mar 2007 00:03:47 +0200
- Subject: Re: [sparc-solaris] unexpected warning when starting program
- References: <20070312051646.GI14401@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sun, 11 Mar 2007 22:16:46 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
>
> I am not sure how to fix it either. On solaris 2.8 and 2.9, the two
> files are identical but distinct - one is not a link to the other.
> On solaris 2.10, however, one is a link of the other, so we could
> presumably check the fullpath instead of doing a direct name comparison.
> But that would be pretty expensive for just one type of host, no?
String comparisons is the wrong thing to do when the issue is file
equality. This mostly works only by chance. We should implement a
smarter FILENAME_CMP, IMHO.