1 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.dwp
2 # RUN: not llvm-dwp %t.dwp -o %t 2>&1 | FileCheck %s
4 ## Note: To reach the test point, we need a DWP file with a CU, a CU index
5 ## and a broken TU index.
7 # CHECK: error: failed to parse tu_index
9 .section .debug_abbrev.dwo, "e", @progbits
11 .uleb128 1 # Abbreviation Code
12 .uleb128 17 # DW_TAG_compile_unit
13 .byte 1 # DW_CHILDREN_no
14 .uleb128 0x2131 # DW_AT_GNU_dwo_id
15 .uleb128 7 # DW_FORM_data8
21 .section .debug_info.dwo, "e", @progbits
23 .long .LCUEnd-.LCUVersion # Length of Unit
26 .long 0 # Abbrev offset
27 .byte 8 # Address size
28 .uleb128 1 # Abbrev [1] DW_TAG_compile_unit
29 .quad 0x1100001122222222 # DW_AT_GNU_dwo_id
32 .section .debug_types.dwo, "e", @progbits
35 .section .debug_cu_index, "", @progbits
39 .long 2 # Section count
42 ## Hash Table of Signatures:
43 .quad 0x1100001122222222
45 ## Parallel Table of Indexes:
48 ## Table of Section Offsets:
50 .long 1 # DW_SECT_INFO
51 .long 3 # DW_SECT_ABBREV
53 .long 0 # Offset in .debug_info.dwo
54 .long 0 # Offset in .debug_abbrev.dwo
55 ## Table of Section Sizes:
56 .long .LCUEnd-.LCUBegin # Size in .debug_info.dwo
57 .long .LAbbrevEnd-.LAbbrevBegin # Size in .debug_abbrev.dwo
59 .section .debug_tu_index, "", @progbits