From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14265 invoked by alias); 18 May 2002 19:39: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 14253 invoked from network); 18 May 2002 19:39:10 -0000 Received: from unknown (HELO branoic.WV.CC.CMU.EDU) (128.2.76.124) by sources.redhat.com with SMTP; 18 May 2002 19:39:10 -0000 Received: from drow by branoic.WV.CC.CMU.EDU with local (Exim 3.35 #1 (Debian)) id 179A2e-0004gP-00; Sat, 18 May 2002 15:39:00 -0400 Date: Sat, 18 May 2002 12:39:00 -0000 From: Daniel Jacobowitz To: Richard.Earnshaw@arm.com Cc: Michael Snyder , Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Revise REGISTER_SIM_REGNO() Message-ID: <20020518193900.GA17960@branoic.wv.cc.cmu.edu> Mail-Followup-To: Richard.Earnshaw@arm.com, Michael Snyder , Andrew Cagney , gdb-patches@sources.redhat.com References: <3CE53F51.BEC03B6D@redhat.com> <200205181055.LAA26201@cam-mail2.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205181055.LAA26201@cam-mail2.cambridge.arm.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-05/txt/msg00790.txt.bz2 On Sat, May 18, 2002 at 11:55:01AM +0100, Richard Earnshaw wrote: > > > > I need a way the target vector to let REGISTER_NAME() know that the > > > register is "unavailable this session", so that it can return an empty > > > string for the register; so that gdb won't think it exists at all. > > > > > > I see. This is something that depends on both the arch and the target. > > Yep, the arch says what registers a processor has, the target says which > of those it can supply. > > Of course, you will only get a useful debugging session if the two overlap > sufficiently. > > I suspect that it will be quite common for the arch to describe registers > that are only available when the processor is running in a privileged > mode; clearly you don't need those to debug a user-level program, but they > can be very helpful when trying to debug an OS. Certainly this is the way > I'd like to describe the views of ARM processors. SH is the same. The GNU/Linux native patch that the community is using (which I keep meaning to fix up and submit...) patches a lot of register names to "". -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer