1 # RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - \
2 # RUN: | not llvm-dwarfdump -verify - \
5 # CHECK: Verifying .debug_info Unit Header Chain...
6 # CHECK-NEXT: error: Invalid address range [0x0000000000000007, 0x0000000000000006)
8 .section __TEXT,__text,regular,pure_instructions
9 .macosx_version_min 10, 12
10 .globl _foo ## -- Begin function foo
15 .loc 1 1 0 ## basic.c:1:0
19 .cfi_def_cfa_offset 16
22 .cfi_def_cfa_register %rbp
24 .loc 1 1 17 prologue_end ## basic.c:1:17
31 .section __DWARF,__debug_str,regular,debug
33 .asciz "clang version 6.0.0 (trunk 308773) (llvm/trunk 308774)" ## string offset=0
34 .asciz "basic.c" ## string offset=55
35 .asciz "/Users/sgravani/Development/tests" ## string offset=63
36 .asciz "foo" ## string offset=97
37 .section __DWARF,__debug_abbrev,regular,debug
39 .byte 1 ## Abbreviation Code
40 .byte 17 ## DW_TAG_compile_unit
41 .byte 1 ## DW_CHILDREN_yes
42 .byte 37 ## DW_AT_producer
43 .byte 14 ## DW_FORM_strp
44 .byte 19 ## DW_AT_language
45 .byte 5 ## DW_FORM_data2
47 .byte 14 ## DW_FORM_strp
48 .byte 16 ## DW_AT_stmt_list
49 .byte 6 ## DW_FORM_data4
50 .byte 27 ## DW_AT_comp_dir
51 .byte 14 ## DW_FORM_strp
52 .byte 17 ## DW_AT_low_pc
53 .byte 1 ## DW_FORM_addr
54 .byte 18 ## DW_AT_high_pc
55 .byte 1 ## DW_FORM_addr
58 .section __DWARF,__debug_info,regular,debug
61 .long 43 ## Length of Unit
62 .short 3 ## DWARF version number
63 Lset0
= Lsection_abbrev-Lsection_abbrev
## Offset Into Abbrev. Section
65 .byte 8 ## Address Size (in bytes)
66 .byte 1 ## Abbrev [1] 0xb:0x3f DW_TAG_compile_unit
67 .long 0 ## DW_AT_producer
68 .short 12 ## DW_AT_language
69 .long 55 ## DW_AT_name
70 Lset1
= Lline_table_start0-Lsection_line
## DW_AT_stmt_list
72 .long 63 ## DW_AT_comp_dir
73 .quad 7 ## DW_AT_low_pc -- error: Invalid address range [0x0000000000000007, 0x0000000000000006)
74 .quad 6 ## DW_AT_high_pc
75 .byte 0 ## End Of Children Mark
76 .subsections_via_symbols
77 .section __DWARF,__debug_line,regular,debug