From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44236 invoked by alias); 21 Jan 2016 15:59:32 -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 44210 invoked by uid 89); 21 Jan 2016 15:59:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qg0-f51.google.com Received: from mail-qg0-f51.google.com (HELO mail-qg0-f51.google.com) (209.85.192.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 21 Jan 2016 15:59:30 +0000 Received: by mail-qg0-f51.google.com with SMTP id e32so35126098qgf.3; Thu, 21 Jan 2016 07:59:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=APMq4WFcuZc3De8SkioGIWM/c2RvvolfnrdsAuu0vmk=; b=U3yrfl+pgxQoG56EY27K7NvceFI3kJ8ysZiDxqRsmIiGefwkC/uj1xrdG0DxNfcgqh cJSyCZx8i+Z8iKkN1QxETzHk9B9O4PenIcqYvIRTxbDOUlWYFCEsi8cu7z7StfJ2DON7 2ldwLwfGDW3srU+sfjqhoP9Z9zpvaJs+Wyk0UD/5fVDlKcwgJ5QMKAy8Ib2W28duHgdw bGRdGocZLT5rQDtYxVF+6Pm7pftiR2gEbGguG+GXbG/4szgmaFErccPIUwrMWMvCbD1g 3Mw+7Y3i9ce39segfSeCbH5i/N5cw5nLISvnmf1RJsrif64zOpPr3UUhX1mEEf4f7WJX lKtw== X-Gm-Message-State: AG10YORfzjOQbXQIvwEZ2GudQtg1P85VmYBB/G8WOeQ9n0fdNvL6AoAK/yq9bIxY7aXcsbaH7XaLygoDvtC1zQ== MIME-Version: 1.0 X-Received: by 10.140.141.69 with SMTP id 66mr8297773qhn.68.1453391968100; Thu, 21 Jan 2016 07:59:28 -0800 (PST) Received: by 10.55.215.6 with HTTP; Thu, 21 Jan 2016 07:59:28 -0800 (PST) In-Reply-To: <56A0EA83.3040403@redhat.com> References: <20160121092855.GJ17028@bubble.grove.modra.org> <56A0CE51.1090709@redhat.com> <56A0D901.7010709@redhat.com> <56A0E594.2080303@redhat.com> <56A0EA83.3040403@redhat.com> Date: Thu, 21 Jan 2016 15:59:00 -0000 Message-ID: Subject: Re: Use elfcore_write_linux_prstatus in gdb From: "H.J. Lu" To: Pedro Alves Cc: Alan Modra , Binutils , GDB Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00535.txt.bz2 On Thu, Jan 21, 2016 at 6:26 AM, Pedro Alves wrote: > 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. > It works. Thanks. -- H.J.