From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20860 invoked by alias); 21 Jan 2016 14:26:15 -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 20839 invoked by uid 89); 21 Jan 2016 14:26:14 -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= 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; Thu, 21 Jan 2016 14:26:14 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id BD67A1B282C; Thu, 21 Jan 2016 14:26:12 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0LEQBFw024343; Thu, 21 Jan 2016 09:26:11 -0500 Message-ID: <56A0EA83.3040403@redhat.com> Date: Thu, 21 Jan 2016 14: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: "H.J. Lu" CC: Alan Modra , Binutils , GDB Subject: Re: Use elfcore_write_linux_prstatus in gdb References: <20160121092855.GJ17028@bubble.grove.modra.org> <56A0CE51.1090709@redhat.com> <56A0D901.7010709@redhat.com> <56A0E594.2080303@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-01/txt/msg00520.txt.bz2 On 01/21/2016 02:17 PM, H.J. Lu wrote: > On Thu, Jan 21, 2016 at 6:05 AM, Pedro Alves wrote: >> On 01/21/2016 01:24 PM, H.J. Lu wrote: >>> Please take a look at bfd/hosts/x86-64linux.h to see how to dump core >>> x86-64. >> >> I don't have x32 setup on my machine. AFAICS, elf_prstatusx32 is exactly >> like elf_prstatus32, except it takes a 64-bit regset. ... >> >> elfcore_write_linux_prstatus32 should be reached. Other than that, >> I have no idea (other than installing the stop gap on x32 too). >> > > x32 has different core types (core layout) from m32 and m64. > See bfd/hosts/x86-64linux.h for details. As I said, "AFAICS, elf_prstatusx32 is exactly like elf_prstatus32, except it takes a 64-bit regset." It's probably an issue of alignment/padding? > You need > elfcore_write_linux_prstatusx32 or change > elfcore_write_linux_prstatus32 to suport x32. I really can't be working further on this myself right now, sorry. I've updated the branch to install the stop-gap on x32 as well, which really ends up calling the same function we call today. Please give it a try. Thanks, Pedro Alves