From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14418 invoked by alias); 21 Sep 2012 15:35:30 -0000 Received: (qmail 14334 invoked by uid 22791); 21 Sep 2012 15:35:29 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS 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, 21 Sep 2012 15:35:13 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8LFZCte005350 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 21 Sep 2012 11:35:12 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q8LFZ84q028032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 21 Sep 2012 11:35:11 -0400 Date: Fri, 21 Sep 2012 15:35:00 -0000 From: Jan Kratochvil To: dje@google.com Cc: gdb-patches@sourceware.org Subject: Re: [RFC] New option -nh: disable loading ~/.gdbinit Message-ID: <20120921153508.GA29943@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-09/txt/msg00438.txt.bz2 On Fri, 21 Sep 2012 00:01:54 +0200, dje@google.com wrote: > When running tests (not necessarily tests in gdb/testsuite!) with a > gdb with a non-trivial system.gdbinit, > it is useful to be able disable loading ~/.gdbinit. > system.gdbinit is still necessary, it provides necessary functionality. > > One *could* run the tests with -nx -x /path/to/system.gdbinit, > but the path to system.gdbinit is not necessarily easy to obtain. > > Instead, I'd like to add this option: -nh. The current auto-load functionality: (gdb) set auto-load gdb-scripts local-gdbinit safe-path libthread-db python-scripts scripts-directory besides local-gdbinit would logically have also system-gdbinit and home-gdbinit. -nx would be then equivalent to all of: -iex 'set auto-load system-gdbinit off' -iex 'set auto-load home-gdbinit off' -iex 'set auto-load local-gdbinit off' -nh would be then equivalent to: -iex 'set auto-load home-gdbinit off' Wouldn't be the last option more clear than another magic option '-nh'? The patch would be short, I could even post it but so far it was more just some sort of a clean-up but if you even have a use for it. Regards, Jan