From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9070 invoked by alias); 13 Apr 2003 14:23:13 -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 9063 invoked from network); 13 Apr 2003 14:23:13 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 13 Apr 2003 14:23:13 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 194iO9-0002Y8-00; Sun, 13 Apr 2003 09:23:21 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 194iNy-0005OK-00; Sun, 13 Apr 2003 10:23:10 -0400 Date: Sun, 13 Apr 2003 14:23:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: gdb@sources.redhat.com Subject: Re: gdb/regformats Message-ID: <20030413142310.GA20680@nevyn.them.org> Mail-Followup-To: Kris Warkentin , gdb@sources.redhat.com References: <03ca01c3003b$f334a550$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03ca01c3003b$f334a550$0202040a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00125.txt.bz2 On Fri, Apr 11, 2003 at 11:06:37AM -0400, Kris Warkentin wrote: > I was looking at this directory and wondering what it's used for. I see > that gdbserver uses the reg definitions but I didn't see if/how gdb does. > > The reason is that our OS stores its i386 general purpose registers in a > different order than gdb does so in our tdep file we have to map them. I > was wondering if the regformats file might provide a more elegant way of > doing it. Not really. They are descriptions of the remote protocol; only gdbserver uses them at the moment but long-term that may change, as Andrew said. They are not meant to describe the OS's register buffer, only GDB's. The long term goal, if anyone has time to pursue it, is to make the remote protocol independent of the layout of GDB's register cache. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer