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/23626] gdb crashes in upstream rust nil-enum test


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

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
The DWARF says:

 <2><311>: Abbrev Number: 7 (DW_TAG_structure_type)
    <312>   DW_AT_name        : (indirect string, offset: 0x2ae): ANilEnum
    <316>   DW_AT_byte_size   : 0
    <317>   DW_AT_alignment   : 1
 <3><318>: Abbrev Number: 8 (DW_TAG_variant_part)
 <3><319>: Abbrev Number: 0


The source says:

enum ANilEnum {}


So basically a pathological case not accounted for at some spot in the
gdb variant part code.

-- 
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]