From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13877 invoked by alias); 21 Jan 2016 13:24:06 -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 12369 invoked by uid 89); 21 Jan 2016 13:24:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 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-qk0-f181.google.com Received: from mail-qk0-f181.google.com (HELO mail-qk0-f181.google.com) (209.85.220.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 21 Jan 2016 13:24:04 +0000 Received: by mail-qk0-f181.google.com with SMTP id s5so15533751qkd.0; Thu, 21 Jan 2016 05:24:04 -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=5ggfMD/fNOtQ0gLTomWfS3WjMGAdsJpSGS4zM5sE178=; b=fNut5VHOQ8OtY10UcOFsFx8S+4dcyr1biBJCRxPrnJ9EI59dfpye6hUS+a8ByctCdl l/DpA+d+j9lmO5ICF/6GN+arHXqKLyseeRxWX9eJ1WVwU6Jrs4vbqaFHKZgPkt+Ivcvs c2/3dzF3NpkUpVnCYqhEk2qBSZWFZ6OYQVEx+cnc3n8755D1WJVBgH09psHfaJKDWDuJ aUtOjXLem0u89TEi01EKwZpNjETyMa9SGXEajaCWe5WE0W8ili19h6YIe0wJ8Pr6kVUU //VCXOh5xKznrVF21XiOP86X49hHISYyND4/xgyPl108N/cXs0ok5MFxYjexHp8FgpTz WDnw== X-Gm-Message-State: ALoCoQkkfhKb6CUzIYvqBNYPtA53s3FBuZAYUhV4uYDTCefWaphAPvopOeuPXSE1pAWW8EF/Xs86Z3iFQkXeSvBB4SIcsLbwBQ== MIME-Version: 1.0 X-Received: by 10.55.80.131 with SMTP id e125mr51675326qkb.62.1453382642574; Thu, 21 Jan 2016 05:24:02 -0800 (PST) Received: by 10.55.215.6 with HTTP; Thu, 21 Jan 2016 05:24:02 -0800 (PST) In-Reply-To: <56A0D901.7010709@redhat.com> References: <20160121092855.GJ17028@bubble.grove.modra.org> <56A0CE51.1090709@redhat.com> <56A0D901.7010709@redhat.com> Date: Thu, 21 Jan 2016 13:24: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/msg00516.txt.bz2 On Thu, Jan 21, 2016 at 5:11 AM, Pedro Alves wrote: > On 01/21/2016 12:25 PM, Pedro Alves wrote: >> On 01/21/2016 09:28 AM, Alan Modra wrote: >>> The gdb side. Nothing fancy here, and no support for targets that >>> need gdbarch_elfcore_write_linux_prstatus, mips n32, sparc64 if >>> writing any of pr_{u,s,cu,cs}time, and probably x86-64 x32. >> >> Thanks a lot for doing all this! I don't have spare cycles either to >> drive this all the way to completion for all archs, I think we can still >> move forward with it, by adding a stop-gap implementation those >> archs, which just calls elfcore_write_prstatus. I'll send it along >> in a bit. > > Like this. I've pushed this to the users/palves/core-prstatus-rework > branch. I've tested on x86_64 with: > > make check RUNTESTFLAGS="--target_board unix/-m32" TESTS="*/*core*.exp" > make check RUNTESTFLAGS="--target_board unix/-m64" TESTS="*/*core*.exp" It failed make check RUNTESTFLAGS="--target_board unix/-mx32" TESTS="*/*core*.exp" Please take a look at bfd/hosts/x86-64linux.h to see how to dump core x86-64. Thanks. H.J.