From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12421 invoked by alias); 11 Apr 2002 02:16:28 -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 12396 invoked from network); 11 Apr 2002 02:16:26 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 11 Apr 2002 02:16:26 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16vU8Z-0001vU-00; Wed, 10 Apr 2002 22:16:35 -0400 Date: Wed, 10 Apr 2002 19:16:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Cc: Jason R Thorpe Subject: Re: cross-debugging of userland core files, nat -> tdep Message-ID: <20020410221635.A7369@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com, Jason R Thorpe References: <20020410183918.C22095@dr-evil.shagadelic.org> <20020410215824.A6539@nevyn.them.org> <20020410191229.E22095@dr-evil.shagadelic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020410191229.E22095@dr-evil.shagadelic.org> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-04/txt/msg00166.txt.bz2 On Wed, Apr 10, 2002 at 07:12:29PM -0700, Jason R Thorpe wrote: > 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(). Thus the "may" :) > > 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" :-) Yeah, I know, I know. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer