Re: [patch] mips-tdep: info registers

Joel Brobecker
2009-03-05T22:50:40Z

Daniel,

Thanks for taking a look - I knew there was a reason I wasn't
comfortable with this approach...

> They should be aliases for the normal registers, e.g. $1 and $at
> should mean the same thing.

I have never implemented something like this before. How would you
do it? I see that mips-tdep.c already has some table of register
name aliases. This doesn't look like it can be connected to
the "info registers" command, because of the way this command
is implemented (it iterates over all register numbers, gets their
associated names, and compares with the name used by the user).
As far as I can tell, the only way that I can see is by adding
a new series of pseudo-registers.

--
Joel