This is the mail archive of the
mailing list for the GDB project.
Re: [RFC]: Solib search (Was: Re: Cross solib support; continued)
> Date: Tue, 27 Nov 2001 19:15:42 +0100
> From: Orjan Friberg <firstname.lastname@example.org>
> Eli Zaretskii wrote:
> > This is not how one should test for an absoulte file name portably,
> > and incrementing in_pathname by one is not how you portably make it a
> > relative file name.
> Yes, I know (from my original post):
> > (It won't work with DOS based file
> > systems, as the dir separator could be '\\', but that would be easy to add.)
I've seen that, but you only mentioned the backslash nuisance. My
point was that there are more subtle problems: the first character of
an absolute file name doesn't have to be a slash or a backslash.
> Thanks for the suggestion on how to do it correctly though; I'll
> incorporate it.
You are welcome.