From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49045 invoked by alias); 21 Jan 2016 14:33:12 -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 49008 invoked by uid 89); 21 Jan 2016 14:33:11 -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=Hx-languages-length:1293 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-qg0-f45.google.com Received: from mail-qg0-f45.google.com (HELO mail-qg0-f45.google.com) (209.85.192.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 21 Jan 2016 14:33:10 +0000 Received: by mail-qg0-f45.google.com with SMTP id o11so32670956qge.2; Thu, 21 Jan 2016 06:33:10 -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=o5zoN7BwdpVMjqZi6d7dVBiaYhKrQS3CfzzgcnVSgjo=; b=GhBw0qaeGcFpqHLKS5j0+m2MVzPEVdZhe5GEfweACHolc05ROwPipWoaSorwa83CGe 6A7hF74h/ylrVAdABwdvg5AFcbQpQGH/BPZ/z2sk5RJxYAqKPjsoVFb9VJz/CPh1B2LO BuSosTy18cqUDp4/LB9+hl/M+m9Z5S00ApX9H674d4wPyXi9g/dEZqaJBPq6i5/9mnKu GfJE7+bJcKUhAQ+o/x53e1uqddVuMYTceQ7JsReoaEJsU8D8Gu4wFmDg+WV0tNit6ShM 9ejspSZ1CpYf2kXs4aZuyeBPp0VM26ZbmpZoXtcTRfp3IkaJser3V0CEJcs66ESEMGa4 Wz0w== X-Gm-Message-State: ALoCoQnYc41At1lDZq7+vktxVe/RejiM+5os0I9KZxHLmbvXhYBcNco6u1mYANrKbK8kKT+EFIR1ctMxTS7C0uBRRbxHSO5XyQ== MIME-Version: 1.0 X-Received: by 10.140.16.225 with SMTP id 88mr53767779qgb.96.1453386787825; Thu, 21 Jan 2016 06:33:07 -0800 (PST) Received: by 10.55.215.6 with HTTP; Thu, 21 Jan 2016 06:33:07 -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 14:33: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/msg00521.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. > I will take a look. -- H.J.