From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25330 invoked by alias); 2 May 2005 19:56:42 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25310 invoked from network); 2 May 2005 19:56:36 -0000 Received: from unknown (HELO cgf.cx) (66.30.17.189) by sourceware.org with SMTP; 2 May 2005 19:56:36 -0000 Received: by cgf.cx (Postfix, from userid 201) id E217E13C7E2; Mon, 2 May 2005 15:56:35 -0400 (EDT) Date: Mon, 02 May 2005 19:56:00 -0000 From: Christopher Faylor To: gdb@sourceware.org Subject: Re: Windows support in GDB Message-ID: <20050502195635.GF23447@trixie.casa.cgf.cx> Mail-Followup-To: gdb@sourceware.org References: <200504291513.j3TFDhjx021040@elgar.sibelius.xs4all.nl> <20050429153146.GA27362@nevyn.them.org> <20050429160040.GH10017@trixie.casa.cgf.cx> <42726061.5090101@qnx.com> <20050429163011.GB12864@trixie.casa.cgf.cx> <427267B7.8020107@qnx.com> <01c54e87$Blat.v2.4$40320aa0@zahav.net.il> <20050501214128.GA23129@trixie.casa.cgf.cx> <01c54f49$Blat.v2.4$609aece0@zahav.net.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c54f49$Blat.v2.4$609aece0@zahav.net.il> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00019.txt.bz2 On Mon, May 02, 2005 at 10:00:39PM +0300, Eli Zaretskii wrote: >>Date: Sun, 1 May 2005 17:41:28 -0400 >>From: Christopher Faylor >> >>>In fact, any serious use of GDB will almost instantly bump into such a >>>consistency (or lack thereof) issue. For example, will the `edit' and >>>`shell' commands work if I don't have a Cygwin Bash installed and GDB >>>is configured to invoke that Bash as the shell? >> >>And, if they don't, what's the solution? You fix it so they will work. >>Presumably, if there is no /bin/sh.exe available, you'd use a fallback. >>You could even implement a switch to force cygwin's gdb into "windows >>path mode". > >You could do all that and more, but AFAIK that'd be against the >``spirit of Cygwin'', which is to solve all incompatibilities in the >runtime, and leave the application sources more or less intact. You don't need to worry about the spirit of cygwin. I am one of the project leaders for Cygwin and I'm implying that patches to make gdb more pure "windows-friendly" would be accepted. gdb already has massive windows-specific accommodations due to the fact that cygwin doesn't try to emulate a UNIX-like debugger interface. gdb already allows 'x:\y' style paths. I can see why people might want to use cygwin's gdb as a windows debugger without requiring a full cygwin installation (if for no other reason than it might be useful for debugging cygwin itself) so I am saying that I would support the inclusion of these types of patches. Perhaps this seems inconsistent for the Cygwin project lead but as the gdb windows maintainer, I think it makes good sense. cgf