From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24929 invoked by alias); 3 May 2013 14:51:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 24919 invoked by uid 89); 3 May 2013 14:51:32 -0000 X-Spam-SWARE-Status: No, score=-9.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 03 May 2013 14:51:32 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r43EpQRa017562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 May 2013 10:51:26 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r43EpOdo020682; Fri, 3 May 2013 10:51:25 -0400 Message-ID: <5183CEEC.5020501@redhat.com> Date: Fri, 03 May 2013 14:51:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Thomas Schwinge CC: =?UTF-8?B?6ZmG5bKz?= , bug-hurd@gnu.org, gdb-patches@sourceware.org Subject: Re: [patch] for mig check in GDB's configure References: <8738u4sc19.fsf@kepler.schwinge.homeip.net> In-Reply-To: <8738u4sc19.fsf@kepler.schwinge.homeip.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg00054.txt.bz2 On 05/03/2013 09:28 AM, Thomas Schwinge wrote: > Hmm, I think that instead of only examining the host system, $host, this > also needs to examine the target system, $target. (Please tell if the > difference between build, host, and target system is not clear to you.) > The MIG tool is used to generate files (from RPC definition files) that > are used by the native GDB port for GNU Hurd (which, of couse, is the > only GNU Hurd port that currently exists.) But if someone, for example, > builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not > need the MIG tool. > > GDB folks, would it make sense to use something like: > > case $gdb_native:$host in > [...] > yes:i[[3456]]86-*-gnu*) > [error if MIG not found] > > ..., to check that both host and target are GNU Hurd? Sure. Looking at config/i386/i386gnu.mh, NAT_GENERATED_FILES in particular, I think gdb will want to run mig even on cross gdbs hosted on GNU Hurd, though... -- Pedro Alves