From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27576 invoked by alias); 11 May 2012 18:47:01 -0000 Received: (qmail 27562 invoked by uid 22791); 11 May 2012 18:46:59 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 May 2012 18:46:44 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4BIjpDH029014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 May 2012 14:46:22 -0400 Received: from host2.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4BHNpcC025631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 11 May 2012 13:23:53 -0400 Date: Fri, 11 May 2012 18:47:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [patch 2/2] Implement multi-component --with-auto-load-dir Message-ID: <20120511172350.GA19778@host2.jankratochvil.net> References: <20120509154847.GB12692@host2.jankratochvil.net> <20120509201743.GL15555@adacore.com> <20120509203350.GA15551@host2.jankratochvil.net> <20120509205119.GN15555@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120509205119.GN15555@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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/msg00432.txt.bz2 On Wed, 09 May 2012 22:51:19 +0200, Joel Brobecker wrote: > > With Fedora scl-utils ("alternative packaging") you have both regular > > /usr/share/gdb/auto-load/ > > and also the "alternative" > > /opt/rh/upgradeset/root/usr/share/gdb/auto-load/ > > I see. I wish we could manage both with one setting. Since we need > a "list" of directories, I'd keep "auto-load script-dir" (should we make > that script-dir plural?)... We already have multi-directory "set debug-file-directory". (It may be called so as it was a single directory in the past; OTOH if you insist on dir/directories we should rename it and make the original setting obsolete-compatible.) We also have command "directory" which properly parses multiple directories: (gdb) directory /tmp/a:/tmp/b Warning: /tmp/a: No such file or directory. Warning: /tmp/b: No such file or directory. Source directories searched: /tmp/a:/tmp/b:$cdir:$cwd We can argue about singular vs. plural form like there are many reasons for both cases in which form to name SQL tables. > I can see how things can be awkward for turning the safety guard off > (the equivalent of what we used to do with "auto-load safe-path"). > I think I'd just make that a boolean setting instead. Do you mean to make 'auto-load safe-path [on|off]'? This would be coincidentally fine for me as I both face untrusted inferiors and I dislike any auto-loads. But it would be too dangerous for anyone who likes auto-loaded scripts and who also faces untrusted inferiors. > > > debugging /work/build/gcc-feature-a/gcc/cc1, you don't need to have > > > cc1-gdb.gdb defined in your auto-load directory as > > > auto-load/work/build/gcc-feature-a/gcc/cc1-gdb.gdb. It'd just be > > > sufficient to have cc1-gdb.gdb defined in your scripts-directory. [...] > No, they are not related, and you shouldn't have to worry about that > (unless you want to!). It's a feature I think some users would enjoy > having, but if I want it, I should be the one taking care of the > implementation. I understand it would be useful; I just do not like any auto-loads myself to try figure out the best way to do it. Also /usr/share/gdb/auto-load/ has never been an idea of mine. Thanks, Jan