ARM patch -- extra info about cpsr register

Richard Earnshaw rearnsha@arm.com
Sat Apr 1 00:00:00 GMT 2000


> Hi Richard,
> 
> Thanks for the submission.  However, we are using something else to show register bits nowadays.  It uses the
> REGISTER_VIRTUAL_TYPE and we build a type for the register with bitfields so normal gdb processing (and the GUI) can
> show the bits and allow the user to set a specific bit by name (without having to know its position by heart).
> 
> I am sorting out some details and tracking down a bug in gdb before making it available.  My code is for another
> processor but it will be very easy to adapt it for ARM.  If you fell like helping, as soon as I have a final version I
> can point you to the right pieces of code.
> 
> Hope you are not too disappointed.

Not at all.  It's not the implementation that's important; it's that the 
information be decoded for the user.  Mapping a hex number to a set of 
mnemonics is something a computer is good and and a human is not.   If 
your version allows the user to set the register mnemonically as well, 
then all the better.

Please keep me posted on your patch.

R.




More information about the Gdb-patches mailing list