[RFC]: Solib search (Was: Re: Cross solib support; continued)

Eli Zaretskii eliz@is.elta.co.il
Wed Nov 14 20:58:00 GMT 2001


> Date: Tue, 27 Nov 2001 19:15:42 +0100
> From: Orjan Friberg <orjan.friberg@axis.com>
> 
> 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.



More information about the Gdb-patches mailing list