This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Auto-load safe-path and auto-load scripts-directory on Windows
- From: Eli Zaretskii <eliz at gnu dot org>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 20 Sep 2015 09:12:12 +0300
- Subject: Re: Auto-load safe-path and auto-load scripts-directory on Windows
- Authentication-results: sourceware.org; auth=none
- References: <83io7y3249 dot fsf at gnu dot org> <55FDE51A dot 1060009 at gmail dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sun, 20 Sep 2015 06:43:38 +0800
> From: asmwarrior <asmwarrior@gmail.com>
>
> On 2015-8-29 16:55, Eli Zaretskii wrote:
> > I've noticed that the default values of these 2 path lists use ':' as
> > directory separator, even on MS-Windows. Isn't that a bug? (Does
> > anyone use these features on Windows? if so, how come no one noticed?)
> >
>
> When I start GDB on windows, I pass this argument:
> -iex "set auto-load safe-path /"
(You can have that in your ~/.gdbinit instead, then you won't need to
specify this argument on every invocation of GDB.)
> This enable Auto-load safe-path to every directories. This is not quite safe, but it works.
As long as auto-load safe-path includes a single directory on the
current drive, be it "/" or anything else, you can get away with this
bug. But once you really want a list of directories, or a directory
on a specific drive, you are toast: the feature becomes broken.