From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21242 invoked by alias); 23 Feb 2009 16:10:21 -0000 Received: (qmail 21224 invoked by uid 22791); 23 Feb 2009 16:10:19 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Feb 2009 16:10:14 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LbdNa-0002Z8-TX for gdb-patches@sources.redhat.com; Mon, 23 Feb 2009 16:10:02 +0000 Received: from enigma.qnx.com ([209.226.137.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Feb 2009 16:10:02 +0000 Received: from aristovski by enigma.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Feb 2009 16:10:02 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: Re: [patch] mips-tdep: info registers Date: Mon, 23 Feb 2009 16:26:00 -0000 Message-ID: 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <200902230718.n1N7IoBD028396@brahms.sibelius.xs4all.nl> 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/msg00443.txt.bz2 Mark Kettenis wrote: >> Date: Sun, 22 Feb 2009 21:52:30 -0500 >> From: Daniel Jacobowitz >> >> On Sun, Feb 22, 2009 at 06:08:20PM -0800, Joel Brobecker wrote: >>>> (gdb) info registers $1 >>>> ../../gdb/mips-tdep.c:4307: internal-error: >>>> mips_print_registers_info: >>>> Assertion `regnum >= gdbarch_num_regs (current_gdbarch)' >>>> failed. >>> Surprisingly, this feature is not documented yet. The documentation >>> mentions "info registers regname", but not "info registers regno". >>> Would you mind adding a line or two and sending a (separate) patch >>> to this list? Eli is the documentation guru... >> Should this feature even exist? This is a different "$1" than >> anywhere else in GDB you might type that... > > I think it shouldn't; the register numbers are internal to GDB an may > change (once they've been properly decoupled from the remote > interface). > 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. Thanks, Aleksandar Ristovski QNX Software Systems