From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25831 invoked by alias); 14 Jan 2009 20:38:59 -0000 Received: (qmail 25821 invoked by uid 22791); 14 Jan 2009 20:38:59 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 20:37:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D461E10632; Wed, 14 Jan 2009 20:37:55 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id BE13C1053D; Wed, 14 Jan 2009 20:37:55 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LNCUt-0007zT-9C; Wed, 14 Jan 2009 15:37:55 -0500 Date: Wed, 14 Jan 2009 20:38:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sourceware.org, guitton@adacore.com Subject: Re: Add support for --with-system-gdbinit Message-ID: <20090114203755.GB15499@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org, guitton@adacore.com References: <20090114135619.GA24456@caradoc.them.org> <20090114194922.GA13339@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2009-01/txt/msg00334.txt.bz2 On Wed, Jan 14, 2009 at 10:21:34PM +0200, Eli Zaretskii wrote: > > If you configure GDB using --prefix=$prefix > > --with-system-gdbinit=$prefix/etc/gdbinit, then a GDB installed in > > $prefix/bin will load $prefix/etc/gdbinit at startup. If the tree > > is copied to /other/prefix, then GDB will load > > /other/prefix/etc/gdbinit. > > If GDB can detect the right prefix for the system-wide gdbinit file, > why does it need to be configured for a specific place ($prefix/etc) > to begin with? I'm sorry, I don't understand your question - could you explain? As currently implemented there is no standard location. We don't put it in /etc here; we use "$prefix/$host/$target/lib/gdbinit" in case you have a lot of different configurations installed in the same place. I didn't pick a naming policy since the default is the same as it was before; no global init file. -- Daniel Jacobowitz CodeSourcery