This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.

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

# Re: shared lib dos filename style - one more question

On Tue, 2009-10-13 at 20:25 +0200, Eli Zaretskii wrote:
> > >  /sysroot/c:/path/to/a
> > >  /sysroot/d:/path/to/b
> >
> > Good point. Either form works for me.
>
> I vote for the second, because it covers the case that the colon is
> part of a real Unix file name.

Ok so I guess the table becomes :

> 1.  /path/to/a -> /path/to/a
> 2.  \path/to/a -> /path/to/a
> 3.  \path\to\a -> /path/to/a
> 4.  c: -> c:
> 5.  c:\path\to\a -> c:/path/to/a

so the only thing that happens is backslash to forward slash
translation.

Right ?

On Mon, 2009-10-12 at 16:44 -0400, Daniel Jacobowitz wrote:
> Anyway, I'd prefer a global solution rather than one local to
> solib_find.  For instance, we've had trouble with FILENAME_CMP
> depending on which host the program was *compiled* on.

Do you mean that the call to unixify() should happen in openp() instead
of in solib_find() ? There's also a call to open() so I guess this
should be changed as well.

Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info



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