From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14372 invoked by alias); 29 Jun 2013 02:12:05 -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 14361 invoked by uid 89); 29 Jun 2013 02:12:04 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 29 Jun 2013 02:12:03 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Uskds-0004Ww-HS from Yao_Qi@mentor.com ; Fri, 28 Jun 2013 19:12:00 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 28 Jun 2013 19:12:00 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.2.247.3; Fri, 28 Jun 2013 19:11:59 -0700 Message-ID: <51CE4252.7050305@codesourcery.com> Date: Sat, 29 Jun 2013 03:11:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Pedro Alves CC: Mircea Gherzan , , 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> In-Reply-To: <51CD8023.3030308@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2013-06/txt/msg00926.txt.bz2 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, dnl #### dnl # _GCC_TOPLEV_NONCANONICAL_TARGET dnl # $target_alias or $host_noncanonical if blank. dnl # Used when we would use $target_alias, but empty is not OK. AC_DEFUN([_GCC_TOPLEV_NONCANONICAL_TARGET], [AC_REQUIRE([_GCC_TOPLEV_NONCANONICAL_HOST]) []dnl case ${target_alias} in "") target_noncanonical=${host_noncanonical} ;; *) target_noncanonical=${target_alias} ;; esac ]) []dnl # _GCC_TOPLEV_NONCANONICAL_TARGET and macro ACX_NONCANONICAL_TARGET is invoked in configure.ac. 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). -- Yao (齐尧)