From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8151 invoked by alias); 24 Jun 2005 11:46:49 -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 8115 invoked by uid 22791); 24 Jun 2005 11:46:40 -0000 Received: from lon-del-01.spheriq.net (HELO lon-del-01.spheriq.net) (195.46.50.97) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 24 Jun 2005 11:46:40 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-01.spheriq.net with ESMTP id j5OBkaRO024354 for ; Fri, 24 Jun 2005 11:46:36 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-02.spheriq.net with ESMTP id j5OBjSr8004597 for ; Fri, 24 Jun 2005 11:45:28 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id j5OBkZ6H001798 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 24 Jun 2005 11:46:35 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 CC230DA42 for ; Fri, 24 Jun 2005 11:46:34 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 6451147520; Fri, 24 Jun 2005 11:48:27 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2A5D7759B0 for ; Fri, 24 Jun 2005 11:48:27 +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 A8FD647529 for ; Fri, 24 Jun 2005 11:48:26 +0000 (GMT) Received: from terrorhawk.bri.st.com (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.4.4-GR) with ESMTP id BMI01538 (AUTH "andrew stubbs"); Fri, 24 Jun 2005 12:46:32 +0100 (BST) Date: Fri, 24 Jun 2005 11:46:00 -0000 To: gdb@sources.redhat.com Subject: host_makefile_frag and cross debugging From: Andrew STUBBS Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.01 (Win32, build 7642) 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.2.1 X-SW-Source: 2005-06/txt/msg00227.txt.bz2 Hi, I am trying to build a MinGW hosted, sh-elf targeted debugger. I have been doing this with various versions of GDB for years, but have just started upgrading to GDB 6.3. Previously I was using GDB 5.3. I am using the MinGW patches from sourceforge. The problem is that, although a native debugger works properly, a cross debugger does not use the correct path separator. It uses the UNIX ':' instead of the windows ';'. Obviously this causes havoc with drive names. I have traced the problem to the gdb/configure.in: frags= if test "${target}" = "${host}"; then host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh if test ! -f ${host_makefile_frag}; then AC_MSG_ERROR("*** Gdb does not support native target ${host}") fi frags="$frags $host_makefile_frag" else host_makefile_frag=/dev/null fi Why does it test if host and target are the same? Surely the whole point of having separate files is that you can mix and match? The old 5.3 gdb/configure.in just had: frags= host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh which worked perfectly for me. I find that this was done in CVS configure.in version 1.175 in which the following comment was actually removed: # When building a native debuger the .mh file containing things # like NATDEPFILES is needed. Cross debuggers don't need .mh # since it no longer contains anything useful. Apparently, in this case it does contain something useful - it configures the xm-mingw32.h file which configures the correct separator. What am I missing? Thanks Andrew Stubbs