Re: [patch] mips-tdep: info registers

Aleksandar Ristovski
2009-03-05T19:27:22Z

Daniel Jacobowitz wrote:
> On Thu, Mar 05, 2009 at 11:12:45AM -0800, Joel Brobecker wrote:
>> Hi Daniel,
>>
>> IIRC, you've worked on the mips target a few times in the past.
>> Do you forsee any problem if mips_register_name return "0" .. "31"
>> for the raw GP registers?
>>
>> What Aleksandar is trying to do is allow "info register 1" to work
>> on mips, instead of having to use "info register at"...
>>
>> Thanks!
>
> I think it's weird for them to map to the raw registers. info
> registers displays the ABI-sized registers, so why should these be any
> different?
>

Bottom line is that mips assembly will have something like this:
move $4, $9 # copy contents of $9 into $4

and it would be natural to be able to print value of $9.

My patch may have not implemented this correctly, maybe I
still need to return pseudo registers, but the numeric name
should be recognized in any case.