46 lines · yaml
1# RUN: yaml2obj %s -o %t.o2# RUN: not llvm-dwarfdump -debug-info -verify %t.o | FileCheck %s3 4# CHECK: Verifying non-dwo Units...5# CHECK-NEXT: Verifying unit: 1 / 1, "/tmp/main.c" 6# CHECK-NEXT: error: invalid DIE reference 0x00000011. Offset is in between DIEs:7 8--- !ELF9FileHeader:10 Class: ELFCLASS6411 Data: ELFDATA2LSB12 Type: ET_EXEC13DWARF:14 debug_str:15 - ''16 - /tmp/main.c17 - main18 debug_abbrev:19 - Table:20 - Code: 0x0000000121 Tag: DW_TAG_compile_unit22 Children: DW_CHILDREN_yes23 Attributes:24 - Attribute: DW_AT_name25 Form: DW_FORM_strp26 - Code: 0x0000000227 Tag: DW_TAG_subprogram28 Children: DW_CHILDREN_no29 Attributes:30 - Attribute: DW_AT_name31 Form: DW_FORM_strp32 - Attribute: DW_AT_type33 Form: DW_FORM_ref_addr34 debug_info:35 - Version: 436 AddrSize: 837 Entries:38 - AbbrCode: 0x0000000139 Values:40 - Value: 0x000000000000000141 - AbbrCode: 0x0000000242 Values:43 - Value: 0x000000000000000D44 - Value: 0x000000000000001145 - AbbrCode: 0x0000000046