From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24271 invoked by alias); 14 Jan 2009 19:39:08 -0000 Received: (qmail 24262 invoked by uid 22791); 14 Jan 2009 19:39:07 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout7.012.net.il (HELO mtaout7.012.net.il) (84.95.2.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 19:38:26 +0000 Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KDH005007PYBC00@i-mtaout7.012.net.il> for gdb-patches@sourceware.org; Wed, 14 Jan 2009 21:38:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.133.113]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KDH003IM7VHGPK0@i-mtaout7.012.net.il>; Wed, 14 Jan 2009 21:38:06 +0200 (IST) Date: Wed, 14 Jan 2009 19:39:00 -0000 From: Eli Zaretskii Subject: Re: Add support for --with-system-gdbinit In-reply-to: <20090114135619.GA24456@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> 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/msg00327.txt.bz2 > Date: Wed, 14 Jan 2009 08:56:19 -0500 > From: Daniel Jacobowitz > Cc: Jerome Guitton , Eli Zaretskii > > 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''? > Eli, is the doc patch OK? The doc patch doesn't really say anything useful: > @item > @cindex init file > +Reads the system-wide @dfn{init file} (if @option{--with-system-gdbinit} was > +used when building @value{GDBN}) and executes all the commands in that file. 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? At the very least we should have some command-line option (perhaps as part of "--help") to show where this file should live and what's its name, and we should describe that right next to the above text. We shouldn't assume that the user is the same person who built GDB in the first place. Also, doesn't the relocation of the file (whatever it may mean) warrant some documentation as well? Assuming I'm a sysadmin who needs to set up such a site-wide init file, don't I need to know something else besides what you wrote?