[Bug rust/30330] GDB 13.1 no longer prints length of Rust slice wrappers
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Apr 11 18:52:39 GMT 2023
https://sourceware.org/bugzilla/show_bug.cgi?id=30330
--- Comment #2 from Josh Stone <jistone at redhat dot com> ---
Hmm, Rust 1.59 to 1.60 changed those member attributes.
1.59:
<3><1002>: Abbrev Number: 12 (DW_TAG_member)
<1003> DW_AT_name : (indirect string, offset: 0xf63af): value
<1007> DW_AT_type : <0x13ba>
<100b> DW_AT_alignment : 1
<100c> DW_AT_data_member_location: 0
1.60:
<3><13a6>: Abbrev Number: 41 (DW_TAG_member)
<13a7> DW_AT_name : (indirect string, offset: 0x105d4b): value
<13ab> DW_AT_type : <0xb7>
<13af> DW_AT_byte_size : 1
<13b0> DW_AT_bit_size : 0
<13b1> DW_AT_bit_offset : 8
<13b2> DW_AT_data_member_location: 0
> This structure does not really have a byte size of 0,
It doesn't have a *static* size at all -- it needs the reference's length.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list