From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3464 invoked by alias); 12 Nov 2001 06:14:02 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3286 invoked from network); 12 Nov 2001 06:13:57 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sourceware.cygnus.com with SMTP; 12 Nov 2001 06:13:57 -0000 Received: from drow by nevyn.them.org with local (Exim 3.32 #1 (Debian)) id 163AM4-0003SH-00; Mon, 12 Nov 2001 01:14:00 -0500 Date: Thu, 01 Nov 2001 10:58:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: G packet format ... Message-ID: <20011112011400.A13250@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <3BEF5CF4.4010201@cygnus.com> <20011112004001.A11764@nevyn.them.org> <3BEF64CB.2010401@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3BEF64CB.2010401@cygnus.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2001-11/txt/msg00017.txt.bz2 On Mon, Nov 12, 2001 at 12:57:31AM -0500, Andrew Cagney wrote: > >>NB: Why do this? > >> > >>The objective is to decouple the remote protocol's G packet from the > >>rest of GDB. That way, GDB has greater flexability in how it implements > >>its regcache. For instance, with the MIPS, it will be possible to have > >>a single internal register layout while still being able to connect to > >>all the remote MIPS targets. > > > > > >I guess I posted my gdbserver register cache patch before I converted > >it to generate them from a shell script. Here's what I've been using. > >I didn't consider the issue of only-transferable-in-P-packet registers > >(and I still don't see a good reason... well, maybe I can come up with > >one, actually. Things that react when read.). > > [x86 example deleted] > > Doesn't the x86 have the potential for 4 billion MSRs? :-) I wouldn't know :) It's my least-familiar platform; I only picked it because the register data was short :P I'm a little skeptical of using the P packet for registers not-present-in-all-cases, either. Perhaps in the morning I'll be able to figure out why. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer