This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Auto-load safe-path and auto-load scripts-directory on Windows


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]