From: Hannes Domani <ssbssa@yahoo.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v3] Handle Windows drives in auto-load script paths
Date: Wed, 8 Jul 2020 18:52:44 +0000 (UTC) [thread overview]
Message-ID: <941705205.7950021.1594234364964@mail.yahoo.com> (raw)
In-Reply-To: <838sftrihf.fsf@gnu.org>
Am Mittwoch, 8. Juli 2020, 20:04:28 MESZ hat Eli Zaretskii <eliz@gnu.org> Folgendes geschrieben:
> > From: Hannes Domani <ssbssa@yahoo.de>
> > Date: Wed, 8 Jul 2020 19:19:57 +0200
> >
> > 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.
> >
> > gdb/ChangeLog:
> >
> > 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
> >
> > * auto-load.c (auto_load_objfile_script_1): Convert drive part
> > of debugfile path on Windows.
> >
> > gdb/doc/ChangeLog:
> >
> > 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
> >
> > * gdb.texinfo: Document Windows drive conversion of
> > 'set auto-load scripts-directory'.
>
> This LGTM, as I said earlier.
>
> One minor aesthetic nit, though:
>
>
> > + debugfile_holder = STRIP_DRIVE_SPEC (debugfile);
> > + filename = std::string("/") + debugfile[0] + debugfile_holder;
>
>
> Perhaps it is slightly better to use "\\" here instead of "/", since
> on both sides of that "/D" thing all other separators are backslashes,
> so this forward slash looks like the odd one out.
Pushed with this change, thanks.
Hannes
prev parent reply other threads:[~2020-07-08 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200708171957.15720-1-ssbssa.ref@yahoo.de>
2020-07-08 17:19 ` Hannes Domani
2020-07-08 18:04 ` Eli Zaretskii
2020-07-08 18:52 ` Hannes Domani [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=941705205.7950021.1594234364964@mail.yahoo.com \
--to=ssbssa@yahoo.de \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox