This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


   Date: Sun, 18 Aug 2002 16:08:06 -0400
   From: Andrew Cagney <ac131313@ges.redhat.com>

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

Mark




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]