[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / DebugInfo / X86 / invalid-cu-length-dwp.s
blob299bea1bf1a708821e539e4385ec4539c26649a7
1 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \
2 # RUN: llvm-dwarfdump -debug-info -
4 ## llvm-dwarfdump used to crash with this input because of an invalid size
5 ## of the compilation unit contribution in the .debug_cu_index section.
7 .section .debug_abbrev.dwo, "e", @progbits
8 .LAbbrBegin:
9 .uleb128 1 # Abbreviation Code
10 .uleb128 17 # DW_TAG_compile_unit
11 .byte 0 # DW_CHILDREN_no
12 .uleb128 3 # DW_AT_name
13 .uleb128 8 # DW_FORM_string
14 .uleb128 0x2131 # DW_AT_GNU_dwo_id
15 .uleb128 7 # DW_FORM_data8
16 .byte 0 # EOM(1)
17 .byte 0 # EOM(2)
18 .byte 0 # EOM(3)
19 .LAbbrEnd:
21 .section .debug_info.dwo, "e", @progbits
22 .LCUBegin:
23 .long .LCUEnd-.LCUVersion # Length
24 .LCUVersion:
25 .short 4 # Version
26 .long 0 # Abbrev offset
27 .byte 4 # Address size
28 .uleb128 1 # Abbrev [1] DW_TAG_compile_unit
29 .asciz "a.c" # DW_AT_name
30 .quad 0x1100001122222222 # DW_AT_GNU_dwo_id
31 .LCUEnd:
33 .section .debug_cu_index, "", @progbits
34 ## Header:
35 .short 2 # Version
36 .space 2 # Padding
37 .long 2 # Section count
38 .long 1 # Unit count
39 .long 4 # Slot count
40 ## Hash Table of Signatures:
41 .quad 0
42 .quad 0
43 .quad 0x1100001122222222
44 .quad 0
45 ## Parallel Table of Indexes:
46 .long 0
47 .long 0
48 .long 1
49 .long 0
50 ## Table of Section Offsets:
51 ## Row 0:
52 .long 1 # DW_SECT_INFO
53 .long 3 # DW_SECT_ABBREV
54 ## Row 1:
55 .long .LCUBegin-.debug_info.dwo # Offset in .debug_info.dwo
56 .long .LAbbrBegin-.debug_abbrev.dwo # Offset in .debug_abbrev.dwo
57 ## Table of Section Sizes:
58 .long .LCUEnd-.LCUBegin-1 # Size of the contribution in .debug_info.dwo (invalid)
59 .long .LAbbrEnd-.LAbbrBegin