Re: [patch] mips-tdep: info registers

Daniel Jacobowitz
2009-02-23T16:18:05Z

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