From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14622 invoked by alias); 27 Sep 2004 14:17:06 -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 14522 invoked from network); 27 Sep 2004 14:16:56 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 27 Sep 2004 14:16:56 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8REGasw030947 for ; Mon, 27 Sep 2004 10:16:46 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8REGUr10701; Mon, 27 Sep 2004 10:16:30 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 42F6D28D2; Mon, 27 Sep 2004 10:16:27 -0400 (EDT) Message-ID: <415820BB.6030001@gnu.org> Date: Mon, 27 Sep 2004 14:17:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040831 MIME-Version: 1.0 To: Mark Kettenis Cc: gdb@sources.redhat.com Subject: Re: NAT_FILE always required? References: <200409261900.i8QJ0iXs001344@elgar.sibelius.xs4all.nl> In-Reply-To: <200409261900.i8QJ0iXs001344@elgar.sibelius.xs4all.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00236.txt.bz2 > It looks as if I'm ready to get rid of NAT_FILE for *BSD/amd64. > Except there's this funny bit of code in configure.in: > > if test "${nativefile}" = ""; then > < Makefile \ > sed -e '/^NATDEPFILES[[ ]]*=.*\\$/,/[[^\\]]$/s/^/# /' \ > -e '/^NATDEPFILES[[ ]]*=/s/^/# /' \ > | sed -e '/^\(NATDEPFILES[[ ]]*[[+]]=[[ ]]*\)/s//# \1/' \ > > Makefile.tem > mv -f Makefile.tem Makefile > fi > > This code comments out the definition of NATDEPFILES if NAT_FILE isn't > there. What's the purpose of this code? As you imply -> it was assuming that nativefile=="" implied no native support. Grubbing around, there was code like: if host==target native=`sed magic ...` so native= for cross targets was empty and the above would have disabled native support. The predicate was moved between 5.2 and 5.3 and my fuzzy memory is because: - it never really worked - (possibly) it was realized that "one day soon" GDB would support both native and true cross debuggers in a single binary > Can anybody see a reason why > this code can't be deleted? As far as I can tell, ever since 5.3 nativefile!="" has held, and hence the code was dead. Andrew