[patch rfc] Almost eliminate REGISTER_CONVERTIBLE et.al.

Andrew Cagney ac131313@redhat.com
Tue Jun 3 01:27:00 GMT 2003


> Hello,
> 
> The attached almost eliminates the REGISTER_CONVERTIBLE family of architecture methods.
> 
> The value_of_register method uses REGISTER_CONVERTIBLE, while value_from_register uses CONVERT_REGISTER_P (defaults to REGISTER_CONVERTIBLE).  The REGISTER_CONVERTIBLE call in value_of_register is, however, totally unnecessary.  The register_[virtual]_type method should always return the correct type of a register.  The CONVERT_REGISTER_P call remains necessary since, as with the alpha, code likes to do wierd things like encode integers in floating point registers.
> 
> The patch switches i386, ia64, rs6000, and alpha to CONVERT_REGISTER_P et.al. while, for the remainder, the unnecessary REGISTER_CONVERTIBLE assignment is eliminated.
> 
> The only exception is MIPS which still has messed up raw/virtual registers :-(

I trimmed this back a bit, and checked in the attached.

Andrew

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030603/1f021b44/attachment.ksh>


More information about the Gdb-patches mailing list