Closed
Description
clang-18 is emitting DW_FORM_flag_present in .debug_names, causing this error. I believe it comes from llvm/llvm-project#77457
Can be reproduced with a basic "hello world" .c file.
clang-18 -g -gpubnames test.c
./dwarfdump
.debug_names contents:
Name Index @ 0x0 {
Header {
Length: 0x9C
Format: DWARF32
Version: 5
CU count: 1
Local TU count: 0
Foreign TU count: 0
Bucket count: 4
Name count: 4
Abbreviations table size: 0x13
Augmentation: 'LLVM0700'
}
Compilation Unit offsets [
CU[0]: 0x00000000
]
Abbreviations [
Abbreviation 0x1218 {
Tag: DW_TAG_base_type
DW_IDX_die_offset: DW_FORM_ref4
DW_IDX_parent: DW_FORM_flag_present
}
Abbreviation 0x1718 {
Tag: DW_TAG_subprogram
DW_IDX_die_offset: DW_FORM_ref4
DW_IDX_parent: DW_FORM_flag_present
}
]
Bucket 0 [
Name 1 {
Hash: 0xB888030
String: 0x000000c1 "int"
Entry @ 0x83 {
Abbrev: 0x1218
Tag: DW_TAG_base_type
DW_IDX_die_offset: 0x00000050
DW_IDX_parent: true
}
}
]
Bucket 1 [
EMPTY
]
Bucket 2 [
Name 2 {
Hash: 0x7C9A7F6A
String: 0x000000bc "main"
Entry @ 0x8a {
Abbrev: 0x1718
Tag: DW_TAG_subprogram
DW_IDX_die_offset: 0x00000041
DW_IDX_parent: true
}
}
]
Bucket 3 [
Name 3 {
Hash: 0xCEF4CFB
String: 0x000000a8 "__ARRAY_SIZE_TYPE__"
Entry @ 0x91 {
Abbrev: 0x1218
Tag: DW_TAG_base_type
DW_IDX_die_offset: 0x0000003d
DW_IDX_parent: true
}
}
Name 4 {
Hash: 0x7C952063
String: 0x000000a3 "char"
Entry @ 0x98 {
Abbrev: 0x1218
Tag: DW_TAG_base_type
DW_IDX_die_offset: 0x00000039
DW_IDX_parent: true
}
}
]
}
Metadata
Metadata
Assignees
Labels
No labels