RFC: Lazy bitfields
Daniel Jacobowitz
drow@false.org
Tue Jul 21 20:09:00 GMT 2009
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
More information about the Gdb-patches
mailing list