This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: REGISTER_BYTE() and pseudos
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: Andrew Cagney <ac131313 at cygnus dot com>, Richard dot Earnshaw at arm dot com, gdb at sources dot redhat dot com
- Date: Wed, 15 May 2002 19:07:40 +0100
- Subject: Re: REGISTER_BYTE() and pseudos
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
OK, I see what you are doing. Basically, if a pseudo maps onto a real
register somewhere in the regcache, you return the address of that.
However, what should be done if the pseudo doesn't exist as a single
entry, or if it is a manipulation of a real register? For example, on the
ARM, the CPSR may be just a few bits retrieved from the PC.
Also, what would you do if you needed to address two non-adjacent
registers?
R.