4ea48cc gdb/

Authored and Committed by Daniel Jacobowitz 14 years ago
    	gdb/
    	* 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.
    
        
file modified
+18 -0
file modified
+28 -3
file modified
+60 -17
file modified
+8 -0