This is the mail archive of the
mailing list for the GDB project.
Re: shared lib dos filename style - one more question
> > 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
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.
So best guess on the host is probably /path/to/dll. After that,
we should be able to use the root prefix setting, if necessary,
in order to find the file on the host.