Re: [patch/resend/rfa] (3/4) Remove DEPRECATED_CLEAN_UP_REGISTER_VALUE

Andrew Cagney
2004-04-15T15:34:37Z

> +static void
> +hppa_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
> + int regnum, void *buf)
> +{
> + regcache_raw_read (regcache, regnum, buf);
> + if (regnum == PCOQ_HEAD_REGNUM || regnum == PCOQ_TAIL_REGNUM)
> + ((char *)buf)[sizeof(CORE_ADDR) -1 ] &= ~0x3;
> +}
> +

Almost, this needs to be portable across byte-orders which means using
something like:
[U]LONGEST tmp;
regcache_raw_read_[un]signed (&tmp)
mask tmp
store_[un]signed_integer buf, tmp
with that tweak it is ok to commit (for reference, post the final patch)

andrew
(this also lets me clean-up more of the register code, ya!)