From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27385 invoked by alias); 14 Jan 2009 19:50:07 -0000 Received: (qmail 27376 invoked by uid 22791); 14 Jan 2009 19:50:07 -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 19:49:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id F11A110632; Wed, 14 Jan 2009 19:49:23 +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 A39F11053D; Wed, 14 Jan 2009 19:49:23 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LNBju-0003Yl-VG; Wed, 14 Jan 2009 14:49:22 -0500 Date: Wed, 14 Jan 2009 19:50: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: <20090114194922.GA13339@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org, guitton@adacore.com References: <20090114135619.GA24456@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/msg00328.txt.bz2 On Wed, Jan 14, 2009 at 09:37:55PM +0200, Eli Zaretskii wrote: > > The path will be automatically relocated if the GDB binary is moved, > > so it can be used for a system-wide directory like /etc or a > > prefixed directory like /opt/vendor/share. > > Sorry, I don't understand: what does this mean? How does one > ``relocate a path''? 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. We use the same algorithm for set debug-file-directory and set sysroot. > That's it! We don't tell what is the name of the file, we don't tell > how to find it, we just tell it _might_ exist and it _might_ be read > by GDB at startup. That doesn't sound very user-friendly to me. > Contrast that with what the Emacs manual says about site-start.el, > which AFAIU has a similar purpose. > > Am I missing something? There isn't a standard name. It's just whatever is given to the configure option. Do you think it should have a standard name? I definitely need the ability to change the name via configure. Having --help print it out sounds wise to me. -- Daniel Jacobowitz CodeSourcery