This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: shared lib dos filename style - one more question
> Date: Mon, 12 Oct 2009 22:24:37 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: danny.backx@scarlet.be, drow@false.org, gdb-patches@sourceware.org
>
> > > What should unixify() do ?
> > > 1. /path/to/a -> /path/to/a
> > > 2. \path/to/a -> /path/to/a
> > > 3. \path\to\a -> /path/to/a
> > > 4. c: -> .
> > > 5. c:\path\to\a -> /path/to/a
> >
> > If unixify is supposed to support Windows file semantics, then the
> > last 2 cases are incorrect, IMO. 4 should return "c:." and 5
> > "c:/path/to/a".
>
> Actually, I think in this case "unixify" would mean trying to make
> sense out of Windows path on a Unix machine: The target sent us
> c:\path\to\dll, and we're trying to find that dll on the host.
What is the use-case in which this can happen?