brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 45e6047 Raw
82 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## of version 2 and a TU index of version 5. A valid TU is not required, but6## the .debug_types.dwo section should not be empty.7 8# CHECK: error: incompatible tu_index versions, found 5 and expecting 2 9 10.section .debug_abbrev.dwo, "e", @progbits11.LAbbrevBegin:12    .uleb128 1                      # Abbreviation Code13    .uleb128 17                     # DW_TAG_compile_unit14    .byte 1                         # DW_CHILDREN_no15    .uleb128 0x2131                 # DW_AT_GNU_dwo_id16    .uleb128 7                      # DW_FORM_data817    .byte 0                         # EOM(1)18    .byte 0                         # EOM(2)19    .byte 0                         # EOM(3)20.LAbbrevEnd:21 22    .section .debug_info.dwo, "e", @progbits23.LCUBegin:24    .long .LCUEnd-.LCUVersion       # Length of Unit25.LCUVersion:26    .short 4                        # Version27    .long 0                         # Abbrev offset28    .byte 8                         # Address size29    .uleb128 1                      # Abbrev [1] DW_TAG_compile_unit30    .quad 0x1100001122222222        # DW_AT_GNU_dwo_id31.LCUEnd:32 33    .section .debug_types.dwo, "e", @progbits34    .space 135 36    .section .debug_cu_index, "", @progbits37## 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 5                        # Version62    .space 2                        # Padding63    .long 2                         # Section count64    .long 1                         # Unit count65    .long 2                         # Slot count66## Hash Table of Signatures:67    .quad 0x110000333333333368    .quad 069## Parallel Table of Indexes:70    .long 171    .long 072## Table of Section Offsets:73## Row 0:74    .long 1                         # DW_SECT_INFO75    .long 3                         # DW_SECT_ABBREV76## Row 1:77    .long 078    .long 079## Table of Section Sizes:80    .long 181    .long 182