This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: ARM patch -- extra info about cpsr register
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: ARM patch -- extra info about cpsr register
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Tue, 28 Mar 2000 11:49:20 +0100
- Cc: gdb-patches at sourceware dot cygnus dot com
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
> 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.