From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10571 invoked by alias); 11 Apr 2002 02:12:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10519 invoked from network); 11 Apr 2002 02:12:29 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 11 Apr 2002 02:12:29 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 5CD329869; Wed, 10 Apr 2002 19:12:29 -0700 (PDT) Date: Wed, 10 Apr 2002 19:12:00 -0000 From: Jason R Thorpe To: gdb@sources.redhat.com Subject: Re: cross-debugging of userland core files, nat -> tdep Message-ID: <20020410191229.E22095@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , gdb@sources.redhat.com References: <20020410183918.C22095@dr-evil.shagadelic.org> <20020410215824.A6539@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020410215824.A6539@nevyn.them.org>; from drow@mvista.com on Wed, Apr 10, 2002 at 09:58:24PM -0400 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-04/txt/msg00165.txt.bz2 On Wed, Apr 10, 2002 at 09:58:24PM -0400, Daniel Jacobowitz wrote: > Hit the nail on the head. I believe I've gotten BFD to understand ELF > core files appropriately for a fair number of targets; you may need to > add a platform-specific chunk to all the ones I didn't get to. Then > move supply_* out of the nat files, and link in the core code. Okay, cool. BTW, all of NetBSD's ELF core file handling is in bfd/elf.c. It doesn't require any platform-specific handling except one small switch statement to comute the note type number correctly for various arch's, which is in elfcore_grok_netbsd_note(). > Now, if you've got time, there's a much better way to do this. The > "magic" supply_* and fetch_* names need to go; we should instead have a > table of regset types, sizes, and fetch/supply functions. I just > haven't gotten around to actually doing that. Heh, you said "time" :-) -- -- Jason R. Thorpe