From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14323 invoked by alias); 30 Oct 2012 14:53:49 -0000 Received: (qmail 14175 invoked by uid 22791); 30 Oct 2012 14:53:47 -0000 X-SWARE-Spam-Status: No, hits=-8.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Oct 2012 14:53:36 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9UErXGY004614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Oct 2012 10:53:33 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9UErUxn001805; Tue, 30 Oct 2012 10:53:31 -0400 Message-ID: <508FE9EA.1090709@redhat.com> Date: Tue, 30 Oct 2012 14:53:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: Mark Kettenis CC: palves@redhat.com, yao@codesourcery.com, hjl.tools@gmail.com, binutils@sourceware.org, 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> <508FCA04.6010600@codesourcery.com> <508FCEC5.2020403@redhat.com> <201210301354.q9UDseOZ022173@glazunov.sibelius.xs4all.nl> In-Reply-To: <201210301354.q9UDseOZ022173@glazunov.sibelius.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00116.txt.bz2 On 10/30/2012 01:54 PM, Mark Kettenis wrote: > The problem is that the Linux core file support in bfd is still relies > on native headers. Trying to "fix them up" for bi-arch like what's been > done for the last couple of years on Linux is never going to give you > true cross-debugging support. I agree. The core files' layout is ABI, so we should not need, and should not rely on host headers for generating core files. Given that gcore works with gdbserver too, a non-x86 hosted GDB debugging against a x86 gdbserver should be able to generate x86 core files, without x86 target headers present when building the non-x86 gdb/bfd. I very much support that direction. The patch looks to me a a small step in the right direction, in that we rely a little bit less on the host headers though. I don't know what structures and constants we're still picking up from host headers. Regardless, that's independent of the --enable-64-bit-bfd vs --enable-targets=x86_64-pc-linux-gnu issue, which seems like H.J has just fixed. Thanks! -- Pedro Alves