From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4264 invoked by alias); 21 Aug 2009 16:56:45 -0000 Received: (qmail 4249 invoked by uid 22791); 21 Aug 2009 16:56:44 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Aug 2009 16:56:37 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7LGuWxm032312; Fri, 21 Aug 2009 12:56:32 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7LGuUOO012238; Fri, 21 Aug 2009 12:56:31 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7LGuTTB031783; Fri, 21 Aug 2009 12:56:29 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 165123782EF; Fri, 21 Aug 2009 10:56:29 -0600 (MDT) From: Tom Tromey To: danny.backx@scarlet.be Cc: gdb@sourceware.org Subject: Re: Build question References: <1250803105.11282.96.camel@pavilion> Reply-To: tromey@redhat.com Date: Fri, 21 Aug 2009 17:30:00 -0000 In-Reply-To: <1250803105.11282.96.camel@pavilion> (Danny Backx's message of "Thu, 20 Aug 2009 23:18:25 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00209.txt.bz2 >>>>> "Danny" == Danny Backx writes: Danny> HAVE_DOS_BASED_FILE_SYSTEM doesn't get set in my cross-compile, because Danny> gdb gets compiled by the host gcc, which doesn't set _WIN32. So the Danny> HAVE_DOS_BASED_FILE_SYSTEM never gets defined. This happens both in Danny> gdb/* and in libiberty/* . Just to be certain I understand, you're building a gdb that runs on your Linux box but that you use to debug something running on Windows? Danny> So where should I change this properly ? Danny> Another thing to edit is then include/filenames.h - it needs to grab Danny> this and do the right thing, instead of just reacting to _WIN32 and Danny> such. But that's a trivial fix. I am not familiar with this area in depth. From what you've said it sounds like gdb has some confusion about host paths and target paths. Assuming that is correct, then unfortunately for you I think the best thing to do would be to separate these concepts and turn the current HAVE_DOS_BASED_FILE_SYSTEM into a target property. Tom