From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21746 invoked by alias); 13 Nov 2001 18:26:30 -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 21723 invoked from network); 13 Nov 2001 18:26:30 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sourceware.cygnus.com with SMTP; 13 Nov 2001 18:26:30 -0000 Received: from cygbert.vinschen.de (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA29234 for ; Tue, 13 Nov 2001 10:26:18 -0800 (PST) Received: (from corinna@localhost) by cygbert.vinschen.de (8.9.3/8.9.3/Linux sendmail 8.9.3) id TAA23249 for gdb@sources.redhat.com; Tue, 13 Nov 2001 19:26:15 +0100 Date: Fri, 02 Nov 2001 01:14:00 -0000 From: Corinna Vinschen To: gdb@sources.redhat.com Subject: Re: gdb.ini vs. .gdbinit on Cygwin Message-ID: <20011113192615.C2618@cygbert.vinschen.de> Reply-To: gdb Mail-Followup-To: gdb@sources.redhat.com References: <3BF14E50.7E55FC0C@redhat.com> <20011113180434.Y2618@cygbert.vinschen.de> <3995-Tue13Nov2001195249+0200-eliz@is.elta.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3995-Tue13Nov2001195249+0200-eliz@is.elta.co.il>; from eliz@is.elta.co.il on Tue, Nov 13, 2001 at 07:52:50PM +0200 X-SW-Source: 2001-11/txt/msg00035.txt.bz2 On Tue, Nov 13, 2001 at 07:52:50PM +0200, Eli Zaretskii wrote: > > However, we should use .gdbinit the same way as for > > any other host on Cygwin. There's no reason to treat the Cygwin GDB > > special in that case. > > Yes, there is: Cygwin executables run on Windows, not on Unix or > GNU/Linux. That's right. And GNU/Linux binaries don't run on Windows and most flavours of Unix. So what? > Personally, I like Fernando's suggestion: look for .gdbinit, and if > not found, look for gdb.ini. I think this would satisfy everybody. Which is a special treatment of Cygwin. > As another data point, consider this: the Windows port of Emacs looks > for .emacs first, and if not found, looks for _emacs (the name used > on DOS). > > > 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. > > ??? But GDB doesn't support $GDBINIT on other platforms, so this > suggestion seems to actually _introduce_ OS-specific features. Is > this really a good idea? My suggestion was to introduce $GDBINIT as a generic way to set the path to the init file. So it's not OS dependent. Corinna