From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24574 invoked by alias); 21 Oct 2011 19:54:14 -0000 Received: (qmail 24555 invoked by uid 22791); 21 Oct 2011 19:54:13 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Oct 2011 19:54:00 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id p9LJpPgi008176; Fri, 21 Oct 2011 21:51:25 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id p9LJpOQk022852; Fri, 21 Oct 2011 21:51:24 +0200 (CEST) Date: Fri, 21 Oct 2011 20:37:00 -0000 Message-Id: <201110211951.p9LJpOQk022852@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: uweigand@de.ibm.com CC: gdb-patches@sourceware.org, binutils@sourceware.org In-reply-to: <201110211856.p9LIu92B012443@d06av02.portsmouth.uk.ibm.com> (uweigand@de.ibm.com) Subject: Re: [rfc][1/3] Remote core file generation: BFD support References: <201110211856.p9LIu92B012443@d06av02.portsmouth.uk.ibm.com> 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: 2011-10/txt/msg00607.txt.bz2 > > Hello, > > when implementing support for core file generation with remote targets > in GDB I ran into the problem that the elfcore_write_prpsinfo and > elfcore_write_prstatus are only defined for native targets. This is > even though they could be implemented for remote targets if the > back-end provides the backend_write_core_note callback. > > The following patch provides those functions unconditionally, so that > they can use the back-end callback if present, and return NULL to > signal failure if the callback is not available. > > 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.