[PATCH] Remove some write_register_bytes occurences from i386-tdep.c

Andrew Cagney ac131313@ges.redhat.com
Sun Aug 18 13:08:00 GMT 2002


> 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)

Andrew




More information about the Gdb-patches mailing list