From: Eli Zaretskii <eliz@gnu.org>
To: Hannes Domani <ssbssa@yahoo.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v3] Handle Windows drives in auto-load script paths
Date: Wed, 08 Jul 2020 21:04:28 +0300 [thread overview]
Message-ID: <838sftrihf.fsf@gnu.org> (raw)
In-Reply-To: <20200708171957.15720-1-ssbssa@yahoo.de> (message from Hannes Domani on Wed, 8 Jul 2020 19:19:57 +0200)
> 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.
Thanks.
next prev parent reply other threads:[~2020-07-08 18:04 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 [this message]
2020-07-08 18:52 ` Hannes Domani
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=838sftrihf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=ssbssa@yahoo.de \
/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