This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 1/2] Provide $ddir substitution for --with-auto-load-safe-path
On Mon, 14 May 2012 16:49:50 +0200, Joel Brobecker wrote:
> 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.
I find most easy that:
(1) "set auto-load safe-path" is evaluated for any auto-loaded file.
(2) "set auto-load scripts-directory" is evaluted for auto-loaded scripts.
Besides scripts there exist also .gdbinit or libthread-db, more in the future.
One checks "set auto-load safe-path" to verify the path is secure.
One checks "set auto-load scripts-directory" if it does not load some script.
One re-checks "set auto-load safe-path" if GDB refuses to load some file.
Combining these two variables / meanings complicates it for my mind.
Just giving my point of view. Sure I am terribly biased by implementing it.
Regards,
Jan