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


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


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