Re: [PATCH 2/7] Handle Windows drives in auto-load script paths

Hannes Domani
2020-05-26T16:25:19Z

Am Dienstag, 26. Mai 2020, 18:05:57 MESZ hat Christian Biesinger <cbiesinger@google.com> Folgendes geschrieben:

> On Mon, May 25, 2020 at 1:57 PM Hannes Domani via Gdb-patches
> <gdb-patches@sourceware.org> wrote:
> >
> > Fixes this testsuite fail on Windows:
> > FAIL: gdb.base/auto-load.exp: print $script_loaded
> >
> > Converts the debugfile path from c:/dir/file to /c/dir/file, so it can be
> > appended to the auto-load path.
>
> How does this work? I thought /c/foo was not supported by either
> cygwin or mingw?

Yes, but in this case we need a path that can be appended to the various
entries of 'set auto-load scripts-directory'.
c:/foo can't be appended, but /c/foo can.
So you would get something like c:/script/directory/c/foo.

Hannes