From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24851 invoked by alias); 27 Oct 2005 18:35:43 -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 24828 invoked by uid 22791); 27 Oct 2005 18:35:35 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 27 Oct 2005 18:35:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EVCb4-0007h3-Jh; Thu, 27 Oct 2005 14:35:30 -0400 Date: Thu, 27 Oct 2005 18:35:00 -0000 From: Daniel Jacobowitz To: Ron McCall Cc: gdb@sources.redhat.com Subject: Re: PowerPC 603 Register Set Clarification Message-ID: <20051027183530.GA29470@nevyn.them.org> Mail-Followup-To: Ron McCall , gdb@sources.redhat.com References: <20051027153545.GA25150@nevyn.them.org> <20051027183014.58367.qmail@web81203.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051027183014.58367.qmail@web81203.mail.yahoo.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00171.txt.bz2 On Thu, Oct 27, 2005 at 11:30:13AM -0700, Ron McCall wrote: > > > --- Daniel Jacobowitz wrote: > > The best way to answer this question is to configure > > GDB appropriately > > to talk to a 603 target, and then run "maint info > > registers". That > > will tell you the expected offsets of every > > register. > > There isn't a registers subcommand under maintenance > info but there is a maintenance print raw-registers > command that looks like it gives the desired > information. It says that ASR and the two placeholder > registers have a size of zero. So, that would imply > that both the 'G' and 'g' packets would just omit them > all. However, I do see GDB trying to read these three > registers via the 'p' packet. In that case, should a > stub reply with an error or an empty response? It > doesn't seem possible to returns zeroes since there is > no size associated with these registers. Sorry, I maint maint print registers. raw-reg will work just as well. I'm not sure (re the P packet). An empty response won't work. But 00 should work well enough, or else use 'x'. -- Daniel Jacobowitz CodeSourcery, LLC