OSDN Git Service

gdb/
authorDaniel Jacobowitz <dan@debian.org>
Tue, 21 Jul 2009 18:15:32 +0000 (18:15 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Tue, 21 Jul 2009 18:15:32 +0000 (18:15 +0000)
commit07491b3409f6ace0b7a9a707775a56ce10fece1c
treed2a0e6c48d45999e8201741dd65ebfe6532da49e
parent42275759a4f2a4ad0d9c103dc4979573f576d42f
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.
gdb/ChangeLog
gdb/valops.c
gdb/value.c
gdb/value.h