From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 355 invoked by alias); 23 Feb 2009 16:18:05 -0000 Received: (qmail 347 invoked by uid 22791); 23 Feb 2009 16:18:05 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Feb 2009 16:17:59 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 858A910A5B; Mon, 23 Feb 2009 16:17:57 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 575A7105B6; Mon, 23 Feb 2009 16:17:57 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LbdVE-00054q-Lt; Mon, 23 Feb 2009 11:17:56 -0500 Date: Mon, 23 Feb 2009 17:15:00 -0000 From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] mips-tdep: info registers Message-ID: <20090223161756.GA19411@caradoc.them.org> Mail-Followup-To: Aleksandar Ristovski , gdb-patches@sources.redhat.com References: <20090223020820.GC26056@adacore.com> <20090223025230.GA11699@caradoc.them.org> <200902230718.n1N7IoBD028396@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00444.txt.bz2 On Mon, Feb 23, 2009 at 11:06:20AM -0500, Aleksandar Ristovski wrote: > The use-case where the problem came up is debugging inline assembly code > which uses register numbers instead of register names. > > while "$1" may be confusing due to convenience variables, syntax: > (gdb) info register 1 > is also permitted and looks quite straight-forward. The problem is, this doesn't do what you want it to do. It looks up GDB internal register number 1. That just happens, at the moment, to match up with the raw register backing $at. But it might change in the future. It's not "the register named $1", which is what a MIPS user should expect. -- Daniel Jacobowitz CodeSourcery