83 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - \2# RUN: | not llvm-dwarfdump -verify - \3# RUN: | FileCheck %s4 5# CHECK: Verifying .debug_info Unit Header Chain...6# CHECK-NEXT: error: Units[1] - start offset: 0x0000000d7# CHECK-NEXT: note: The unit type encoding is not valid.8# CHECK-NEXT: note: The address size is unsupported.9# CHECK-NEXT: error: Units[2] - start offset: 0x0000002610# CHECK-NEXT: note: The 16 bit unit header version is not valid.11# CHECK-NEXT: note: The offset into the .debug_abbrev section is not valid.12# CHECK-NEXT: error: Units[4] - start offset: 0x0000004113# CHECK-NEXT: note: The length for this unit is too large for the .debug_info provided.14 15 .section __TEXT,__text,regular,pure_instructions16 .file 1 "basic.c"17 .comm _i,4,2 ## @i18 .comm _j,4,2 ## @j19 .section __DWARF,__debug_str,regular,debug20Linfo_string:21 .asciz "clang version 5.0.0 (trunk 307232) (llvm/trunk 307042)" ## string offset=022 .asciz "basic.c" ## string offset=5523 .asciz "/Users/sgravani/Development/tests" ## string offset=6324 .asciz "i" ## string offset=9725 .asciz "int" ## string offset=9926 .asciz "j" ## string offset=10327 .section __DWARF,__debug_abbrev,regular,debug28Lsection_abbrev:29 .byte 1 ## Abbreviation Code30 .byte 17 ## DW_TAG_compile_unit31 .byte 0 ## DW_CHILDREN_no32 .byte 0 ## EOM(1)33 .byte 0 ## EOM(2)34 .byte 0 ## EOM(3)35 .section __DWARF,__debug_info,regular,debug36Lsection_info:37Lcu_begin0:38 .long 9 ## Length of Unit39 .short 4 ## DWARF version number40Lset0 = Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section41 .long Lset042 .byte 4 ## Address Size (in bytes)43 .byte 1 ## Abbrev [1] 0xc:0x45 DW_TAG_compile_unit44 .byte 0 ## End Of Children Mark45Ltu_begin0:46 .long 21 ## Length of Unit47 .short 5 ## DWARF version number48 .byte 0 ## DWARF Unit Type -- Error: The unit type encoding is not valid.49 .byte 3 ## Address Size (in bytes) -- Error: The address size is unsupported.50 .long 051 .quad 052 .long 053 .byte 054Lcu_begin1:55 .long 10 ## Length of Unit56 .short 6 ## DWARF version number -- Error: The 16 bit unit header version is not valid.57 .byte 1 ## DWARF Unit Type58 .byte 4 ## Address Size (in bytes) -- The offset into the .debug_abbrev section is not valid.59 .long Lline_table_start060 .byte 1 ## Abbrev [1] 0xc:0x45 DW_TAG_compile_unit61 .byte 0 ## End Of Children Mark62Lcu_begin2:63 .long 9 ## Length of Unit64 .short 5 ## DWARF version number65 .byte 1 ## DWARF Unit Type66 .byte 4 ## Address Size (in bytes)67 .long 0 ## Abbrev offset68 .byte 069Ltu_begin1:70 .long 26 ## Length of Unit -- Error: The length for this unit is too large for the .debug_info provided.71 .short 5 ## DWARF version number72 .byte 2 ## DWARF Unit Type73 .byte 4 ## Address Size (in bytes)74 .long 075 .quad 076 .long 077 .byte 078 79.subsections_via_symbols80 .section __DWARF,__debug_line,regular,debug81Lsection_line:82Lline_table_start0:83