From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30875 invoked by alias); 28 May 2002 08:11:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30837 invoked from network); 28 May 2002 08:11:08 -0000 Received: from unknown (HELO branoic) (12.234.96.134) by sources.redhat.com with SMTP; 28 May 2002 08:11:08 -0000 Received: from drow by branoic with local (Exim 3.35 #1 (Debian)) id 17Cc4N-0001Op-00; Tue, 28 May 2002 04:11:03 -0400 Date: Tue, 28 May 2002 03:50:00 -0000 From: Daniel Jacobowitz To: Jason R Thorpe , Michal Ludvig , GDB Patches Subject: Re: [RFC] x86-64 targeted gdb and corefiles Message-ID: <20020528081103.GA5367@branoic.them.org> Mail-Followup-To: Jason R Thorpe , Michal Ludvig , GDB Patches References: <3CF24B2A.3070305@suse.cz> <20020527111157.A22765@dr-evil.shagadelic.org> <20020527184029.GA29774@branoic.them.org> <20020527120111.B22765@dr-evil.shagadelic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020527120111.B22765@dr-evil.shagadelic.org> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-05/txt/msg00958.txt.bz2 On Mon, May 27, 2002 at 12:01:11PM -0700, Jason R Thorpe wrote: > On Mon, May 27, 2002 at 02:40:29PM -0400, Daniel Jacobowitz wrote: > > > Seconded; perhaps with all the attention cross cores have been getting > > lately it's time for a better framework for this? I was thinking > > something like: > > > > struct regset_handler { > > enum type regset_kind; /* general, FP, extended */ > > int size; > > void (*supply)(); > > void (*fetch)(); > > }; > > > > See gdbserver's regset handling for a more concrete example of this. > > This could be used to kill all the duplicate copies of core-regset.c > > that have made their way into i386 and powerpc tdep files. > > Yah, probably not a bad idea. My only concern would be how do you > register and look up these regset handlers. They need to be tied > to the OS ABI somehow. You just said the "how" yourself :) -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer