From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106616 invoked by alias); 19 Jan 2016 10:26:53 -0000 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 Received: (qmail 106583 invoked by uid 89); 19 Jan 2016 10:26:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=emails X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 19 Jan 2016 10:26:52 +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 (Postfix) with ESMTPS id 044DC385D4C; Tue, 19 Jan 2016 10:26:51 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0JAQn5j009585; Tue, 19 Jan 2016 05:26:49 -0500 Message-ID: <569E0F68.2050409@redhat.com> Date: Tue, 19 Jan 2016 10:26:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Alan Modra , John Baldwin , Ulrich Weigand CC: binutils@sourceware.org, gdb@sourceware.org Subject: Re: Are ppc*_elf_write_core_note Os-specific? References: <1736699.V7zq9VJIrx@ralph.baldwin.cx> <20160119001819.GB17028@bubble.grove.modra.org> <20160119031407.GD17028@bubble.grove.modra.org> In-Reply-To: <20160119031407.GD17028@bubble.grove.modra.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-01/txt/msg00030.txt.bz2 On 01/19/2016 03:14 AM, Alan Modra wrote: > On Tue, Jan 19, 2016 at 10:48:19AM +1030, Alan Modra wrote: >> PowerPC64 glibc even now doesn't defing prstatus32_t. :-( It seems >> only sparc and s390 do so. So PowerPC would need a >> hosts/powerpc-linux.h to define them for Linux, with some configury >> changes, like hosts/x86-64linux.h does for x86-64 Linux. I'll see >> about making those changes. >> >> Note that elf_backend_write_core_note is defined for x86-64, arm and >> aarch64 too. The ARM and AARCH64 functions look to be completely >> redundant, and I suspect all of them could disappear if we modify the >> generic code to handle prstatusx32_t for x86-64. > > Actually, there is a reason for the ARM and AARCH64 functions. > See https://sourceware.org/ml/binutils/2011-10/msg00202.html > Note the followup emails too.. > > So it seems that with the current infrastructure we can either support > core file generation on remote (linux) targets, or core file > generation on more native targets (freebsd). Alternatively, we'd > need to use separate bfd target vectors for linux and freebsd, which > can and will cause multiple target matches. > > Do we really want non-native core file generation? > Yes. IMO, all bfd core file generation and reading should be made independent of host headers. Thanks, Pedro Alves