This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Tue, 07 May 2002 11:20:51 +0100
- Subject: Re: [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Hello,
>
> For most architectures. The relationship:
>
> REGISTER_VIRTUAL_SIZE(N)
> == REGISTER_RAW_SIZE(N)
> == TYPE_LENGTH(REGISTER_VIRTUAL_TYPE(N)
>
> (the exception is the @$(*&@(^$*&^!@ MIPS ...). Given this, the
> attached patch changes the architecture vector so that it defaults both
> to the register's type size.
The ARM has REGISTER_VIRTUAL_SIZE(FPA-reg) == 8, but
REGISTER_RAW_SIZE(FPA-reg) == 12.
But that doesn't necessarily make the change wrong, provided we can
override the default.
R.