Skip to content

.debug_names entry referring to skeleton type unit #77696

Closed
@dwblaikie

Description

@dwblaikie

When using .debug_names and Type Units, two entries for the type are produced ( https://godbolt.org/z/7Pd67afn7 ):

struct t1 { };
t1 v1;
     Hash: 0x59796A
      String: 0x00000085 "t1"
      Entry @ 0xa8 {
        Abbrev: 0x26c
        Tag: DW_TAG_structure_type
        DW_IDX_type_unit: 0x00
        DW_IDX_die_offset: 0x00000023
      }
      Entry @ 0xaf {
        Abbrev: 0x268
        Tag: DW_TAG_structure_type
        DW_IDX_die_offset: 0x0000002e
      }
DW_TAG_structure_type
                DW_AT_calling_convention	(DW_CC_pass_by_value)
                DW_AT_name	("t1")
                DW_AT_byte_size	(0x01)
                DW_AT_decl_file	("/app/example.cpp")
                DW_AT_decl_line	(1)
DW_TAG_structure_type
                DW_AT_declaration	(true)
                DW_AT_signature	(0xc6694e51369161f2)

Probably only want the type unit entry for the type in the index.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions