From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9069 invoked by alias); 27 May 2002 19:01:12 -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 9062 invoked from network); 27 May 2002 19:01:11 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 27 May 2002 19:01:11 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 0DB839869; Mon, 27 May 2002 12:01:11 -0700 (PDT) Date: Mon, 27 May 2002 12:24:00 -0000 From: Jason R Thorpe To: Michal Ludvig , GDB Patches Subject: Re: [RFC] x86-64 targeted gdb and corefiles Message-ID: <20020527120111.B22765@dr-evil.shagadelic.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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020527184029.GA29774@branoic.them.org>; from drow@mvista.com on Mon, May 27, 2002 at 02:40:29PM -0400 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-05/txt/msg00948.txt.bz2 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. -- -- Jason R. Thorpe