This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] gdbarch.sh: document REGISTER_SIZE and REGISTER_BYTES
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFA] gdbarch.sh: document REGISTER_SIZE and REGISTER_BYTES
- From: Michael Snyder <msnyder at redhat dot com>
- Date: Fri, 12 Jan 2001 10:02:30 -0800
- CC: Nicholas Duffek <nsd at redhat dot com>, gdb-patches at sources dot redhat dot com
- References: <200101032041.PAA14834@nog.bosbc.com> <3A5EF4D0.C838379@cygnus.com>
Andrew Cagney wrote:
> Given that pseudo-register values are created using a fuction and raw
> register data, do they have any storage?
Sometimes yes, sometimes no. A pseudo-register can be just
an alias for another register, in which case it can share
storage. But it can also be a computed value, in which case
it may have its own storage. I had one case in which a
pseudo-register was the concatenation of two regular
registers -- but they weren't consecutive, so I had to
give the pseudo its own storage and copy them.