This is the mail archive of the gdb-patches@sourceware.org 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: RFC: Lazy bitfields


On Fri, Jul 17, 2009 at 03:25:26PM -0400, Daniel Jacobowitz wrote:
> 2009-07-17  Daniel Jacobowitz  <dan@codesourcery.com>
> 	    Vladimir Prus <vladimir@codesourcery.com>
> 
> 	* valops.c (value_fetch_lazy): Handle bitfields explicitly.
> 	(value_assign): Remove unnecessary FIXME.  Honor the container
> 	type of bitfields if possible.
> 	* value.c (struct value): Add parent field.
> 	(value_parent): New function.
> 	(value_free): Free the parent also.
> 	(value_copy): Copy the parent also.
> 	(value_primitive_field): Do not read the contents of a lazy
> 	value to create a child bitfield value.  Set bitpos and offset
> 	according to the container type if possible.
> 	(unpack_bits_as_long): Rename from unpack_field_as_long.  Take
> 	field_type, bitpos, and bitsize instead of type and fieldno.
> 	(unpack_field_as_long): Use unpack_bits_as_long.
> 	* value.h (value_parent, unpack_bits_as_long): New prototypes.

Checked in.

-- 
Daniel Jacobowitz
CodeSourcery


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