From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25815 invoked by alias); 13 Nov 2001 18:34:16 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25791 invoked from network); 13 Nov 2001 18:34:11 -0000 Received: from unknown (HELO mirapoint.inter.net.il) (192.114.186.20) by sourceware.cygnus.com with SMTP; 13 Nov 2001 18:34:11 -0000 Received: from zaretsky ([192.116.55.139]) by mirapoint.inter.net.il (Mirapoint) with ESMTP id BAK03612; Tue, 13 Nov 2001 20:33:58 +0200 (IST) Date: Fri, 02 Nov 2001 01:33:00 -0000 From: "Eli Zaretskii" To: fnasser@redhat.com Message-Id: <8632-Tue13Nov2001203408+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: gdb@sources.redhat.com In-reply-to: <3BF1612E.94883F9A@redhat.com> (message from Fernando Nasser on Tue, 13 Nov 2001 13:06:38 -0500) Subject: Re: gdb.ini vs. .gdbinit on Cygwin Reply-to: Eli Zaretskii References: <3BF14E50.7E55FC0C@redhat.com> <20011113180434.Y2618@cygbert.vinschen.de> <3BF1612E.94883F9A@redhat.com> X-SW-Source: 2001-11/txt/msg00036.txt.bz2 > Date: Tue, 13 Nov 2001 13:06:38 -0500 > From: Fernando Nasser > > > As a resort we could > > begin to support an environment variable GDBINIT or similar which > > contains the name/path of the GDB init file. That would have the > > advantage to be mostly host independent. > > > > That would have to go through a public gdb discussion as it would > affect other platforms as well. > > And what we need is to accommodate users with an older setup and > give them an incentive to switch. The warning message (if no > .gdbinit was fond and a gdb.ini was found instead) accomplishes > both goals. > > Eli, what do you think of that solution? I generally don't like environment variables unless they are absolutely necessary. This doesn't seem to be the case. Other platforms don't need it. Users will have to set the variable in order to get the functionality. It's simply a back compatibility issue, that's all. I like your suggestion, to support both the old and the new names, best. It seems to be silently doing the Right Thing, which is what I expect from good solutions: you shouldn't be aware that there was a problem to begin with ;-) But I don't want to make this an issue between myself and the Cygwin maintainers. I just made a comment in the hope that it will be useful; if the Cygwin maintainers have strong feelings about tossing gdb.ini and never looking back, it's between them and the Cygwin users. Just be sure to document the change in the manual.