> Date: Sun, 18 Aug 2002 16:08:06 -0400 > From: Andrew Cagney > > > As for write_register_bytes() can it be avoided? I've just posted ``regcache_cooked_write_with_offset_hack(). But I don't think that hack is right here. Perhaphs a single register read - modify - write function is needed? > > Hmm, > > I just hit a need for the same operation while implementing some pseudo > registers. Just adding: > > regcache_raw_read_part(regcache,regnum,offset,length,buf) > regcache_raw_write_part(regcache,regnum,offset,length,buf) > > Where OFFSET would be the byte offset into the register I suppose. > > Seems like a good idea to me. Yes, something like the attached. I'll commit in a few hours, Andrew