From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1115 invoked by alias); 28 Sep 2005 11:52:50 -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 1098 invoked by uid 22791); 28 Sep 2005 11:52:43 -0000 Received: from fra-del-01.spheriq.net (HELO fra-del-01.spheriq.net) (195.46.51.97) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 28 Sep 2005 11:52:43 +0000 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-01.spheriq.net with ESMTP id j8SBqfPJ004694 for ; Wed, 28 Sep 2005 11:52:41 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-03.spheriq.net with ESMTP id j8SBqeZ8028070 for ; Wed, 28 Sep 2005 11:52:40 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id j8SBqcCT027874 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 28 Sep 2005 11:52:40 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 850D2E148; Wed, 28 Sep 2005 10:39:03 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 8FC89475B5; Wed, 28 Sep 2005 10:41:42 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4FFF47599D; Wed, 28 Sep 2005 10:41:42 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9423B475B4; Wed, 28 Sep 2005 10:41:41 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.4.4-GR) with ESMTP id BZT01472 (AUTH "andrew stubbs"); Wed, 28 Sep 2005 11:39:05 +0100 (BST) Message-ID: <433A7285.9060207@st.com> Date: Wed, 28 Sep 2005 11:52:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Steve Folly Cc: GDB List Subject: Re: Can't build gdb for mingw32 if not native? :-( References: <6807053D-E70C-4162-9D82-0936E7E745D5@blueyonder.co.uk> <6C484B02-DD81-46A9-97FB-15EEE6F0B8DC@spfweb.co.uk> <20050927211834.GA20921@nevyn.them.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 2.3.0 X-SW-Source: 2005-09/txt/msg00230.txt.bz2 Steve Folly wrote: > > On 27 Sep 2005, at 22:18, Daniel Jacobowitz wrote: > >> On Tue, Sep 27, 2005 at 10:12:40PM +0100, Steve Folly wrote: >> >>> Hi, >>> >>> I'm trying to build gdb 6.3 on host powerpc-apple-darwin8.2.0 for >>> target i386-pc-mingw32msvc. >>> >> >> GDB 6.3 doesn't support the mingw32 target. In fact it doesn't support >> mingw32 as a host either. Later versions will support it as a host but >> not target. > > > The configure script in the gdb-6.3.tar.gz I downloaded seems to? The top level configure script may do, but as Daniel says the GDB sources do not. Look at www.mingw.org for GDB MinGW patches (GDB 6.3-1 last time I looked). These will get it to compile for MinGW, but, even if they can be made to cross compile, Daniel's point about remote debugging still stands. I can see why you wouldn't want to use Windows as a build platform, but I suggest that, unless you have a good reason not to, you debug the programs natively using the native MinGW GDB. You can probably download a binary from their website along with the rest of MinGW/MSYS. Alternatively, the GDB in Cygwin (www.cygwin.com) is capable of debugging MinGW programs. Cygwin also has support for compiling them with 'gcc -mno-cygwin'. Note that the standard Cygwin install does not include developer tools, but the installation tool is quite easy to use. HTH Andrew