From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12478 invoked by alias); 14 Jan 2009 20:22:20 -0000 Received: (qmail 12470 invoked by uid 22791); 14 Jan 2009 20:22:19 -0000 X-SWARE-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_00,BOTNET,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout1.012.net.il (HELO mtaout1.012.net.il) (84.95.2.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 20:21:38 +0000 Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KDH006009W5FU00@i-mtaout1.012.net.il> for gdb-patches@sourceware.org; Wed, 14 Jan 2009 22:21:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.133.113]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KDH00HB59W8MLA0@i-mtaout1.012.net.il>; Wed, 14 Jan 2009 22:21:45 +0200 (IST) Date: Wed, 14 Jan 2009 20:22:00 -0000 From: Eli Zaretskii Subject: Re: Add support for --with-system-gdbinit In-reply-to: <20090114194922.GA13339@caradoc.them.org> To: Daniel Jacobowitz Cc: gdb-patches@sourceware.org, guitton@adacore.com Reply-to: Eli Zaretskii Message-id: References: <20090114135619.GA24456@caradoc.them.org> <20090114194922.GA13339@caradoc.them.org> 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/msg00331.txt.bz2 > Date: Wed, 14 Jan 2009 14:49:22 -0500 > From: Daniel Jacobowitz > Cc: gdb-patches@sourceware.org, guitton@adacore.com > > 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. 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? > There isn't a standard name. It's just whatever is given to the > configure option. Yes, I saw that much in the patch. > Do you think it should have a standard name? Yes, that would at least give the reader a starting point to look. > Having --help print it out sounds wise to me. I don't see how we can do less than that.