From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10244 invoked by alias); 30 Oct 2012 12:37:46 -0000 Received: (qmail 10171 invoked by uid 22791); 30 Oct 2012 12:37:45 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Oct 2012 12:37:37 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1TTB4b-0005V9-8H from Yao_Qi@mentor.com ; Tue, 30 Oct 2012 05:37:37 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 30 Oct 2012 05:37:37 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Tue, 30 Oct 2012 05:37:44 -0700 Message-ID: <508FCA04.6010600@codesourcery.com> Date: Tue, 30 Oct 2012 12:37:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: "H.J. Lu" CC: , "gdb@sourceware.org" Subject: Re: [rfc] bi-arch for x86-64 corefile. References: <1350881426-4945-1-git-send-email-yao@codesourcery.com> <508F3B88.8060701@codesourcery.com> <508F578F.8050807@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00112.txt.bz2 On 10/30/2012 03:21 PM, H.J. Lu wrote: > I am checking in this. But sourceware.org times out for me. Please > give it a try. > H.J., it works for me! Thanks for the review and checking it in. > diff --git a/bfd/configure b/bfd/configure > index fdf5356..427e5c1 100755 > --- a/bfd/configure > +++ b/bfd/configure > @@ -13927,6 +13927,10 @@ if test "${target}" = "${host}"; then > i[3-7]86-*-linux-*) > COREFILE=trad-core.lo > TRAD_HEADER='"hosts/i386linux.h"' > + case "$enable_targets" in > + *x86_64-*linux*) > + CORE_HEADER='"hosts/x86-64linux.h"' > + esac > ;; > i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; > i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; This part is a little different from my original patch, which is + if test x${want64} = xtrue ; then + CORE_HEADER='"hosts/x86-64linux.h"' + fi This requires something different in configure options. In my previous patch, when configure i686-pc-linux-gnu-gdb to handle bi-arch, we run configure with '--enable-64-bit-bfd'. In current trunk (w/ your patch), we have to run configure with '--enable-targets=x86_64-pc-linux-gnu'. Copy gdb@ here to make sure GDB people are aware of this change, otherwise, configuring gdb with '--enable-64-bit-bfd' only still doesn't work for handling x86-64 corefile on x86 gdb. -- Yao