From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4212 invoked by alias); 17 Jan 2012 20:33:01 -0000 Received: (qmail 4195 invoked by uid 22791); 17 Jan 2012 20:32:58 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_XZ,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; Tue, 17 Jan 2012 20:32:41 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0HKWeee003129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Jan 2012 15:32:40 -0500 Received: from host2.jankratochvil.net (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0HKWaeE016991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 17 Jan 2012 15:32:38 -0500 Date: Tue, 17 Jan 2012 20:35:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Tom Tromey , Doug Evans , gdb-patches@sourceware.org Subject: Re: [patch] New set auto-load-local-gdbinit + disable it by default Message-ID: <20120117203235.GA19481@host2.jankratochvil.net> References: <20120117095552.GA6141@host2.jankratochvil.net> <20120117162621.GA3883@host2.jankratochvil.net> <20120117165640.GB5344@host2.jankratochvil.net> <20120117174839.GA8459@host2.jankratochvil.net> <4F15D856.7020505@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F15D856.7020505@redhat.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-01/txt/msg00646.txt.bz2 On Tue, 17 Jan 2012 21:21:42 +0100, Pedro Alves wrote: > Having to request a safe mode with an extra flag is a flawed design, IMO. > New, and non-aware-of-the-issues-implied (read, most) users, will just > not know about it, and will therefore not use it. I agree with it. I am thinking about it for more days already. But I have not found a way out. The problem is to differentiate these two cases: (a) as regular user: $ tar xzf foreign-crash.tar.gz; cd foreign-crash $ gdb crashprog crashcore # *-gdb.py files lay here around - You are 0wn3d! (b) as regular user: $ cd my/great/project; make # gdb myprog-using-local-new-gdb.py-pretty-printers If we want to fix (a) by default we have to regress (b) in the default case. The second question would be which directories are safe and which are not but that can be solved by some configuration variable and site-adjustable value. Thanks, Jan