This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] mips-tdep: info registers


Mark Kettenis wrote:
Date: Sun, 22 Feb 2009 21:52:30 -0500
From: Daniel Jacobowitz <drow@false.org>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]