From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7101 invoked by alias); 14 May 2012 14:50:24 -0000 Received: (qmail 7091 invoked by uid 22791); 14 May 2012 14:50:22 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 May 2012 14:49:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id D312A1C6627; Mon, 14 May 2012 10:49:58 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id l2fYyi4vU0KI; Mon, 14 May 2012 10:49:58 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 9A6781C6608; Mon, 14 May 2012 10:49:58 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id A667D145616; Mon, 14 May 2012 07:49:50 -0700 (PDT) Date: Mon, 14 May 2012 14:50:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [patch 1/2] Provide $ddir substitution for --with-auto-load-safe-path Message-ID: <20120514144950.GD10253@adacore.com> References: <20120509154640.GA12692@host2.jankratochvil.net> <4FAD56BE.7090703@redhat.com> <20120511181913.GD5886@adacore.com> <20120511182941.GF21798@host2.jankratochvil.net> <20120511193801.GE5886@adacore.com> <20120511195325.GA23742@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120511195325.GA23742@host2.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00507.txt.bz2 > 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