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: [RFC]: Solib search (Was: Re: Cross solib support; continued)


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


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