From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8574 invoked by alias); 21 Oct 2011 20:53:56 -0000 Received: (qmail 8556 invoked by uid 22791); 21 Oct 2011 20:53:55 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate3.uk.ibm.com (HELO mtagate3.uk.ibm.com) (194.196.100.163) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Oct 2011 20:53:41 +0000 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p9LKrdSj007369; Fri, 21 Oct 2011 20:53:39 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9LKrdPL2695344; Fri, 21 Oct 2011 21:53:39 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9LKrdVa022028; Fri, 21 Oct 2011 14:53:39 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p9LKrcAn022020; Fri, 21 Oct 2011 14:53:38 -0600 Message-Id: <201110212053.p9LKrcAn022020@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 21 Oct 2011 22:53:38 +0200 Subject: Re: [rfc][1/3] Remote core file generation: BFD support To: mark.kettenis@xs4all.nl (Mark Kettenis) Date: Fri, 21 Oct 2011 20:53:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org, binutils@sourceware.org In-Reply-To: <201110211951.p9LJpOQk022852@glazunov.sibelius.xs4all.nl> from "Mark Kettenis" at Oct 21, 2011 09:51:24 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00205.txt.bz2 Mark Kettenis wrote: > > The patch in addition implements the callback for ARM Linux. > > There's a bit of a problem with this diff. You're installing the > callback into the generic ARM vector, but the notes you're writing out > are (almost certainly) Linux-specific. Well, the routine is used to write notes named "CORE" with a note type that is passed in as parameter (NT_PRPSINFO or NT_PRSTATUS). I think the only OS on ARM that uses this particular note name/type is Linux. (OpenBSD for example uses completely different notes ...) Do you know of any OS that uses a note of the same name and type, but with different contents? Interestingly enough, at the same place where I installed the new routine, routines to *read* those core file notes were already present (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo). Also, the PPC implementation of elf_backend_write_core_note is likewise installed into the generic PowerPC vector. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com