This is the mail archive of the gdb-prs@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]

[Bug rust/22936] some tests fail with rustc 1.24


https://sourceware.org/bugzilla/show_bug.cgi?id=22936

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
DWARF 5.7.6 Data Member Entries:

The member entry corresponding to a data member that is defined in a structure,
union or class may have either a DW_AT_data_member_location attribute or a
DW_AT_data_bit_offset attribute.

...and

If the size of a data member is not the same as the size of the type given for
the
data member, the data member has either a DW_AT_byte_size or a
DW_AT_bit_size attribute whose integer constant value (see Section 2.19 on
page 55) is the amount of storage needed to hold the value of the data member.


My reading of these is that the bit and byte sizes are exclusive.
Contrast with the language for base types:

If the value of an object of the given type does not fully occupy the storage
described by a byte size attribute, the base type entry may also have a
DW_AT_bit_size and a DW_AT_data_bit_offset attribute, both of whose values
are integer constant values (see Section 2.19 on page 55). The bit size
attribute
describes the actual size in bits used to represent values of the given type.
The
data bit offset attribute is the offset in bits from the beginning of the
containing
storage to the beginning of the value. Bits that are part of the offset are
padding.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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