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


> But with separate --with-auto-load-safe-path one can permit loading .gdbinit
> from GCC or Emacs build directory:
> 	--with-auto-load-safe-path=$ddir/auto-load:~/src/gcc:~/src/emacs
> 
> If you unify these two settings it will try to load scripts for
> arbitrary inferiors also from ~/src/gcc and from ~/src/emacs.  Which
> should be safe - as you declared these directories safe - but I find
> it a bit mess.  Not sure if it is simplification or complication.

Personally, I think it is a complication to have so many settings
that are paths, and I feel like the only way to get away with it is
to document exactly the sequence in which each of the setting is being
evaluated. But I don't have a strong opinion on this.

-- 
Joel


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