From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10873 invoked by alias); 30 Apr 2009 07:25:07 -0000 Received: (qmail 10850 invoked by uid 22791); 30 Apr 2009 07:25:06 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_55,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hel.is.scarlet.be (HELO hel.is.scarlet.be) (193.74.71.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Apr 2009 07:24:59 +0000 Received: from [172.17.1.2] (ip-62-235-147-185.dsl.scarlet.be [62.235.147.185] (may be forged)) by hel.is.scarlet.be (8.14.2/8.14.2) with ESMTP id n3U7OggG012554; Thu, 30 Apr 2009 09:24:43 +0200 Subject: Re: Post mortem debugging for Windows CE From: Danny Backx Reply-To: danny.backx@scarlet.be To: Pedro Alves Cc: gdb-patches@sourceware.org In-Reply-To: <200904281702.30473.pedro@codesourcery.com> References: <1240929901.29047.110.camel@dannypc> <200904281702.30473.pedro@codesourcery.com> Content-Type: text/plain Date: Thu, 30 Apr 2009 07:25:00 -0000 Message-Id: <1241076281.500.2.camel@dannypc> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: hel 20001; Body=3 Fuz1=3 Fuz2=3 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: 2009-04/txt/msg00805.txt.bz2 On Tue, 2009-04-28 at 17:02 +0100, Pedro Alves wrote: > On Tuesday 28 April 2009 15:45:01, Danny Backx wrote: > > I don't think gdb currently has this capability (to inspect postmortem > > dump files) for debugging CE applications. [..] > If you mean adding gdb support to load minidump files, I can think > of several ways to skin that cat: [..] > 2) teach bfd proper about minidumps, and export the register > set info with fake .reg sections, similarly to how we do for elf > core dumps. If you export the same set of sections GDB expects from > elf cores (e.g., .reg/XXX sections for thread register sets, .module sections > for loaded dlls.), then the GDB tweaks are the same as > for #1 above. E.g, teach src/gdb/arm-wince-tdep.c how to extract the loaded > dll list from the core's .module sections. > > 3) Teach GDB about minidumps, by adding a new minidump target_ops, > similar in vein to src/gdb/corelow.c. GDB doesn't currenly like > having more than on core file target_ops, though. I was wondering what is the difference between 2 and 3, and which one is preferred ? Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info