62 lines · plain
1# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.dwp2# RUN: not llvm-dwp %t.dwp -o %t 2>&1 | FileCheck %s3 4## Note: To reach the test point, we need a DWP file with a CU, a CU index5## and a broken TU index.6 7# CHECK: error: failed to parse tu_index8 9.section .debug_abbrev.dwo, "e", @progbits10.LAbbrevBegin:11 .uleb128 1 # Abbreviation Code12 .uleb128 17 # DW_TAG_compile_unit13 .byte 1 # DW_CHILDREN_no14 .uleb128 0x2131 # DW_AT_GNU_dwo_id15 .uleb128 7 # DW_FORM_data816 .byte 0 # EOM(1)17 .byte 0 # EOM(2)18 .byte 0 # EOM(3)19.LAbbrevEnd:20 21 .section .debug_info.dwo, "e", @progbits22.LCUBegin:23 .long .LCUEnd-.LCUVersion # Length of Unit24.LCUVersion:25 .short 4 # Version26 .long 0 # Abbrev offset27 .byte 8 # Address size28 .uleb128 1 # Abbrev [1] DW_TAG_compile_unit29 .quad 0x1100001122222222 # DW_AT_GNU_dwo_id30.LCUEnd:31 32 .section .debug_types.dwo, "e", @progbits33 .space 134 35 .section .debug_cu_index, "", @progbits36 37## Header:38 .long 2 # Version39 .long 2 # Section count40 .long 1 # Unit count41 .long 2 # Slot count42## Hash Table of Signatures:43 .quad 0x110000112222222244 .quad 045## Parallel Table of Indexes:46 .long 147 .long 048## Table of Section Offsets:49## Row 0:50 .long 1 # DW_SECT_INFO51 .long 3 # DW_SECT_ABBREV52## Row 1:53 .long 0 # Offset in .debug_info.dwo54 .long 0 # Offset in .debug_abbrev.dwo55## Table of Section Sizes:56 .long .LCUEnd-.LCUBegin # Size in .debug_info.dwo57 .long .LAbbrevEnd-.LAbbrevBegin # Size in .debug_abbrev.dwo58 59 .section .debug_tu_index, "", @progbits60## Header:61 .short 2 # Version62