From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8252 invoked by alias); 23 Feb 2009 07:19:14 -0000 Received: (qmail 8239 invoked by uid 22791); 23 Feb 2009 07:19:13 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Feb 2009 07:19:03 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n1N7Ipcj004181; Mon, 23 Feb 2009 08:18:51 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n1N7IoBD028396; Mon, 23 Feb 2009 08:18:50 +0100 (CET) Date: Mon, 23 Feb 2009 08:56:00 -0000 Message-Id: <200902230718.n1N7IoBD028396@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: brobecker@adacore.com, aristovski@qnx.com, gdb-patches@sources.redhat.com In-reply-to: <20090223025230.GA11699@caradoc.them.org> (message from Daniel Jacobowitz on Sun, 22 Feb 2009 21:52:30 -0500) Subject: Re: [patch] mips-tdep: info registers References: <20090223020820.GC26056@adacore.com> <20090223025230.GA11699@caradoc.them.org> 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/msg00437.txt.bz2 > 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).