From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1211 invoked by alias); 1 Jul 2013 15:39:10 -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 1190 invoked by uid 89); 1 Jul 2013 15:39:09 -0000 X-Spam-SWARE-Status: No, score=-7.4 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; Mon, 01 Jul 2013 15:39:07 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r61Fd296014589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Jul 2013 11:39:02 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r61Fd0QA007082; Mon, 1 Jul 2013 11:39:01 -0400 Message-ID: <51D1A293.6000901@redhat.com> Date: Mon, 01 Jul 2013 15:39:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Yao Qi CC: Pedro Alves , Mircea Gherzan , tromey@redhat.com, gdb-patches@sourceware.org Subject: Re: [PATCH v3] gdbserver: fix the standalone build References: <1372420771-942-1-git-send-email-mircea.gherzan@intel.com> <51CD7ED4.6070104@codesourcery.com> <51CD8023.3030308@redhat.com> <51CE4252.7050305@codesourcery.com> In-Reply-To: <51CE4252.7050305@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-07/txt/msg00037.txt.bz2 On 06/29/2013 03:11 AM, Yao Qi wrote: > On 06/28/2013 08:22 PM, Pedro Alves wrote: >> Doesn't GDB, and whatever other users of create-version.h, need the >> same treatment first? > > In GDB, the 'target_alias' and 'host_alias' can't be empty, and > create-version.sh only has two users, GDB and GDBserver. > > GDB is configured from the top level. On the top level, the FOO_alias > is set to @FOO_noncanonical@ (in Makefile.tpl). The > 'target_noncanonical' is similar to 'version_target' we computed in > gdbserver/configure.ac. See config/acx.m4, ... > and macro ACX_NONCANONICAL_TARGET is invoked in configure.ac. Hmm, gdb/testsuite/configure.ac is also using that, added here: http://www.sourceware.org/ml/gdb-patches/2006-06/msg00330.html Sounds like we should be making gdbserver use that too, instead of reinventing our own... > > the gdb/configure is invoked by passing "--build=${build_alias} > --host=${host_alias} --target=${target_alias}" from the top level (see > rule configure-gdb in Makefile.in). -- Pedro Alves