This is the mail archive of the gdb-patches@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: [patch 1/2] Provide $ddir substitution for --with-auto-load-safe-path


On 05/11/2012 08:04 PM, Jan Kratochvil wrote:

> On Fri, 11 May 2012 20:59:31 +0200, Pedro Alves wrote:
>> It should already be working?
>> So we'd only need to remove the '/' special case,
> 
> Yes, it is already working.  No, there is no special case, filename_is_in_dir
> handles "", "/" and "////" the same for each split path component.


Looks like there is some special casing somewhere:

 (gdb) show  auto-load safe-path
 List of directories from which it is safe to auto-load files is /usr/local.
 (gdb) set auto-load safe-path :
 (gdb) show  auto-load safe-path
 List of directories from which it is safe to auto-load files is :.
 (gdb) set auto-load safe-path /
 (gdb) show  auto-load safe-path
 Auto-load files are safe to load from any directory.
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Then IIUC, that "from any directory" is simply not true on Windows -- and
I'd call it a bug.  Files outside of the current drive won't auto-load.

-- 
Pedro Alves


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