Re: Auto-load safe-path and auto-load scripts-directory on Windows
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
> Date: Sun, 20 Sep 2015 06:43:38 +0800 > From: asmwarrior <[email protected]> > > 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.