diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-07-21 18:15:32 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-07-21 18:15:32 +0000 |
commit | 4ea48cc1cd4875e570047f5aff70387018a56645 (patch) | |
tree | 35e518fe24754a9342c08045ba1718d8e0c44f81 /gdb/ChangeLog | |
parent | 828d3400fb1a9914ab16ee05dfe2647af8c566c5 (diff) | |
download | gdb-4ea48cc1cd4875e570047f5aff70387018a56645.zip gdb-4ea48cc1cd4875e570047f5aff70387018a56645.tar.gz gdb-4ea48cc1cd4875e570047f5aff70387018a56645.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 37555d1..161d275 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,22 @@ 2009-07-21 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. + +2009-07-21 Daniel Jacobowitz <dan@codesourcery.com> * value.c (struct value): Add reference_count field. (allocate_value_lazy): Initialize reference_count. |