[patch 1/2] Provide $ddir substitution for --with-auto-load-safe-path

Jan Kratochvil jan.kratochvil@redhat.com
Fri May 11 18:17:00 GMT 2012


Hi Pedro,

On Fri, 11 May 2012 20:13:18 +0200, Pedro Alves wrote:
> On 05/09/2012 04:46 PM, Jan Kratochvil wrote:
> 
> > +Setting this variable to @file{/} disables this security protection,
> 
> I wonder if creeping in this unixysm is a sign of an interface
> that could be better.  I mean, it doesn't make so much sense
> if you think of Windows, for example.

I just checked it in, sorry.

Anyway yes, I was thinking about MS-Windows in this case.  But one can no
longer use empty string as it now means "reset to the factory defaults" to be
coherent with other existing GDB commands.

I was thinking about using "set auto-load safe-path :" where ":" is the path
separator but this would be "set auto-load safe-path ;" on MS-Windows.

I just find "/" to be a magic string, which just coincidentally matches root
on UNIX systems.

Sure I can commit some change if you have a better idea.


Thanks,
Jan



More information about the Gdb-patches mailing list