From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2490 invoked by alias); 3 Jul 2013 15:11:14 -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 2481 invoked by uid 89); 3 Jul 2013 15:11:14 -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; Wed, 03 Jul 2013 15:11:13 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UuOi7-0002Sn-Nc from Yao_Qi@mentor.com ; Wed, 03 Jul 2013 08:11:11 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 3 Jul 2013 08:11:11 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Wed, 3 Jul 2013 08:11:10 -0700 Message-ID: <51D43EFA.8080906@codesourcery.com> Date: Wed, 03 Jul 2013 15: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> <51CE4252.7050305@codesourcery.com> <51D1A293.6000901@redhat.com> <51D43D76.8050309@codesourcery.com> In-Reply-To: <51D43D76.8050309@codesourcery.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-SW-Source: 2013-07/txt/msg00144.txt.bz2 On 07/03/2013 11:04 PM, Yao Qi wrote: > The following patches are to use @target_noncanonical@ and > @host_noncanonical@ in GDBserver. In order to make review easier, I > split the patch into two, #1 is to revert two previous commits, and #2 > is to use noncanonical stuff. These two patches should be committed to > cvs in one go. Here is the patch 2/2. Since config/acx.m4 was included in gdb/gdbserver/acinclude.m4, we don't have to include it. -- Yao (齐尧) gdb/gdbserver: 2013-07-03 Yao Qi * Makefile.in (host_alias): Use @host_noncanonical@. (target_alias): Use @target_noncanonical@. * configure.ac: Use ACX_NONCANONICAL_TARGET and ACX_NONCANONICAL_HOST. * configure: Regenerated. --- gdb/gdbserver/Makefile.in | 4 ++-- gdb/gdbserver/configure | 22 ++++++++++++++++++++++ gdb/gdbserver/configure.ac | 3 +++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index d6c3ea8..8f297c6 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -18,8 +18,8 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ -host_alias = @host_alias@ -target_alias = @target_alias@ +host_alias = @host_noncanonical@ +target_alias = @target_noncanonical@ program_transform_name = @program_transform_name@ bindir = @bindir@ libdir = @libdir@ diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 173797a..d4d12ae 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -612,6 +612,8 @@ MAKE CCDEPMODE DEPDIR am__leading_dot +host_noncanonical +target_noncanonical ALLOCA RANLIB INSTALL_DATA @@ -4478,6 +4480,26 @@ _ACEOF fi + case ${build_alias} in + "") build_noncanonical=${build} ;; + *) build_noncanonical=${build_alias} ;; +esac + + case ${host_alias} in + "") host_noncanonical=${build_noncanonical} ;; + *) host_noncanonical=${host_alias} ;; +esac + + case ${target_alias} in + "") target_noncanonical=${host_noncanonical} ;; + *) target_noncanonical=${target_alias} ;; +esac + + + + + + # Dependency checking. rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index 95bb0c6..3c8569f 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -41,6 +41,9 @@ AC_HEADER_DIRENT AC_FUNC_ALLOCA +ACX_NONCANONICAL_TARGET +ACX_NONCANONICAL_HOST + # Dependency checking. ZW_CREATE_DEPDIR ZW_PROG_COMPILER_DEPENDENCIES([CC]) -- 1.7.7.6