PATCH: Add regcache_raw_supply_part/regcache_raw_collect_part

Mark Kettenis mark.kettenis@xs4all.nl
Wed Feb 3 09:14:00 GMT 2010


> Date: Tue, 2 Feb 2010 19:31:31 -0800
> From: "H.J. Lu" <hongjiu.lu@intel.com>
> 
> Hi,
> 
> Intel AVX saves a 256bit YMM register in lower 128bit and upper 128bit
> separately. This patch adds regcache_raw_supply_part and
> regcache_raw_collect_part. They will be used in AVX gdb patches . OK
> to install?

I think introducing these functions would be a mistake.  If you're not
careful, you'll end up with a register cache where part of some
registers is filled with garbage.

I think it is better for the code that fills the register cache, to
collect the pieces and build the full 256-bit value, and then use
regcache_raw_supply() to fill the register cache.



More information about the Gdb-patches mailing list