From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 778 invoked by alias); 17 Dec 2012 17:44:34 -0000 Received: (qmail 697 invoked by uid 22791); 17 Dec 2012 17:44:32 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_CP X-Spam-Check-By: sourceware.org Received: from mail-qa0-f41.google.com (HELO mail-qa0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Dec 2012 17:44:27 +0000 Received: by mail-qa0-f41.google.com with SMTP id o19so2588392qap.0 for ; Mon, 17 Dec 2012 09:44:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.74.198 with SMTP id w6mr7304695qev.57.1355766266167; Mon, 17 Dec 2012 09:44:26 -0800 (PST) Received: by 10.49.12.210 with HTTP; Mon, 17 Dec 2012 09:44:26 -0800 (PST) In-Reply-To: References: Date: Mon, 17 Dec 2012 17:44:00 -0000 Message-ID: Subject: Re: [PATCH/RFC 01/02 v2] Refactor PRPSINFO handling on Binutils From: "H.J. Lu" To: Sergio Durigan Junior Cc: Binutils Development , GDB Patches , Pedro Alves Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2012-12/txt/msg00580.txt.bz2 On Mon, Dec 17, 2012 at 9:41 AM, Sergio Durigan Junior wrote: > On Monday, December 17 2012, H. J. Lu wrote: > >> On Sun, Dec 16, 2012 at 7:09 PM, Sergio Durigan Junior >> wrote: > >>> + if (bed->elf_machine_code == EM_X86_64) >>> + { >>> + prstatusx32_t prstat; >>> + memset (&prstat, 0, sizeof (prstat)); >>> + prstat.pr_pid = pid; >>> + prstat.pr_cursig = cursig; >>> + memcpy (&prstat.pr_reg, gregs, sizeof (prstat.pr_reg)); >>> + return elfcore_write_note (abfd, buf, bufsiz, "CORE", note_type, >>> + &prstat, sizeof (prstat)); >>> + } >>> + else >> >> When will elf_i386_write_core_note be called for >> x32 process? > > Ops, sorry, that code sneaked in apparently. Here's the new version of > the patch. > Can you create a git GDB branch for me to try? -- H.J.