https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109161
--- Comment #3 from Indu Bhagat <ibhagat at gcc dot gnu.org> --- Excerpt from the generated DWARF debug info: <1><32>: Abbrev Number: 3 (DW_TAG_subprogram) <33> DW_AT_external : 1 <33> DW_AT_name : (indirect string, offset: 0x12c4): set_cpu_arch ... <4c> DW_AT_sibling : <0x8e> <2><50>: Abbrev Number: 4 (DW_TAG_structure_type) <51> DW_AT_name : (indirect string, offset: 0x227c): arch_stack_entry ... <59> DW_AT_sibling : <0x70> <3><5d>: Abbrev Number: 5 (DW_TAG_member) <5e> DW_AT_name : (indirect string, offset: 0x79a): prev ... <65> DW_AT_type : <0x8e> <69> DW_AT_data_member_location: 0 <3><6a>: Abbrev Number: 6 (DW_TAG_const_type) <6b> DW_AT_type : <0x50> <3><6f>: Abbrev Number: 0 <2><70>: Abbrev Number: 7 (DW_TAG_typedef) <71> DW_AT_name : (indirect string, offset: 0x227c): arch_stack_entry ... <78> DW_AT_type : <0x50> <2><7c>: Abbrev Number: 8 (DW_TAG_variable) <7d> DW_AT_name : (indirect string, offset: 0x9c5): arch_stack_top ... <84> DW_AT_type : <0x88> <2><88>: Abbrev Number: 1 (DW_TAG_pointer_type) <89> DW_AT_byte_size : 8 <89> DW_AT_type : <0x70> <2><8d>: Abbrev Number: 0 <1><8e>: Abbrev Number: 1 (DW_TAG_pointer_type) <8f> DW_AT_byte_size : 8 <8f> DW_AT_type : <0x6a> <1><93>: Abbrev Number: 0 I see the issues to be the result of: #1. The gen_ctf_sou_type function is processing <3><6a>: Abbrev Number: 6 (DW_TAG_const_type) as a member of the struct. #2. The top-level DIE <1><8e>: Abbrev Number: 1 (DW_TAG_pointer_type) is being processed by ctf_do_die.