From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22399 invoked by alias); 19 Jan 2009 14:20:05 -0000 Received: (qmail 22390 invoked by uid 22791); 19 Jan 2009 14:20:05 -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; Mon, 19 Jan 2009 14:19:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EDA7310829; Mon, 19 Jan 2009 14:19:54 +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 C1227101AB; Mon, 19 Jan 2009 14:19:54 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LOuyn-0008OC-OW; Mon, 19 Jan 2009 09:19:53 -0500 Date: Mon, 19 Jan 2009 14:20:00 -0000 From: Daniel Jacobowitz To: Jerome Guitton Cc: Eli Zaretskii , gdb-patches@sourceware.org Subject: Re: Add support for --with-system-gdbinit Message-ID: <20090119141953.GA32231@caradoc.them.org> Mail-Followup-To: Jerome Guitton , Eli Zaretskii , gdb-patches@sourceware.org References: <20090114135619.GA24456@caradoc.them.org> <20090114194922.GA13339@caradoc.them.org> <20090119141053.GE45099@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090119141053.GE45099@adacore.com> 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/msg00420.txt.bz2 On Mon, Jan 19, 2009 at 03:10:53PM +0100, Jerome Guitton wrote: > Maybe we can take this opportunity to print the list of gdbinit loaded in > GDB at startup. Something like: > > [...] > --xdb XDB compatibility mode. > > At startup, GDB reads the following init files and executes their commands: > * system-wide init file: /etc/gdb/gdbinit > * user-specific init file: /homes/guitton/.gdbinit > * local init file: /homes/guitton/work/.gdbinit > > For more information, type "help" from within GDB, or consult the > GDB manual (available as on-line info or a printed manual). > [...] > > > Would that make sense? It does to me - although I suggest using a relative path for that last item (./.gdbinit), to make it clear that it will change if you cd. -- Daniel Jacobowitz CodeSourcery