From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8177 invoked by alias); 8 Mar 2005 09:39:44 -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 7911 invoked from network); 8 Mar 2005 09:39:30 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 8 Mar 2005 09:39:30 -0000 Received: (qmail 32723 invoked from network); 8 Mar 2005 09:39:29 -0000 Received: from localhost (HELO ?192.168.189.167?) (nathan@127.0.0.1) by mail.codesourcery.com with SMTP; 8 Mar 2005 09:39:29 -0000 Message-ID: <422D72C9.1060206@codesourcery.com> Date: Tue, 08 Mar 2005 09:39:00 -0000 From: Nathan Sidwell Organization: Codesourcery LLC User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb-patches@sources.redhat.com, Paul Brook Subject: Re: [patch] registers beginning with '$' References: <420B383D.1020406@codesourcery.com> <20050307225806.GD28725@nevyn.them.org> In-Reply-To: <20050307225806.GD28725@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00115.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Feb 10, 2005 at 10:32:29AM +0000, Nathan Sidwell wrote: > >>Hi, >>I had the misfortune to port to an architecture where register names >>all start with a '$' and the pc reg is '$PC'. This patch fixes expression >>printing of registers so that such names don't result in '$$name' being >>printed. It fixes register name lookup so that the leading '$' need not >>be specified (several places strip leading '$' on the name to be looked >>up). It also makes the register name lookup case insensitive. >> >>I also attach testsuite patches to allow $pc or $PC as the pc name. >> >>built and tested on i686-pc-linux-gnu, and an unreleased architecture, ok? > > > This one I'm less sure about. If you tell GDB the register names do > not contain '$', what output is wrong? The output from the 'info regs' command will then not have the '$'. nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk