1# RUN: llvm-mc %s -filetype obj -triple i386-pc-linux -o - | \ 2# RUN: not llvm-dwarfdump -debug-addr - 2> %t.err | FileCheck %s 3# RUN: FileCheck %s -input-file %t.err -check-prefix=ERR 4 5# ERR: address table at offset 0x0 has unsupported version 6 6# ERR: address table at offset 0x20 has unsupported version 4 7# ERR-NOT: {{.}} 8 9# CHECK: .debug_addr contents 10# CHECK-NEXT: length = 0x0000000c, format = DWARF32, version = 0x0005, addr_size = 0x04, seg_size = 0x00 11# CHECK-NEXT: Addrs: [ 12# CHECK-NEXT: 0x00000002 13# CHECK-NEXT: 0x00000003 14# CHECK-NEXT: ] 15# CHECK-NOT: {{.}} 16 17 .section .debug_abbrev,"",@progbits 18 .byte 1 # Abbreviation Code 19 .section .debug_info,"",@progbits 20.Lcu_begin0: 21 .long 8 # Length of Unit 22 .short 5 # DWARF version number 23 .byte 1 # DWARF unit type 24 .byte 4 # Address Size (in bytes) 25 .long .debug_abbrev # Offset Into Abbrev. Section 26 27 .section .debug_addr,"",@progbits 28.Ldebug_addr0: 29 .long 12 # unit_length = .short + .byte + .byte + .long + .long 30 .short 6 # version 31 .byte 4 # address_size 32 .byte 0 # segment_selector_size 33 .long 0x00000000 34 .long 0x00000001 35 36 .section .debug_addr,"",@progbits 37.Ldebug_addr1: 38 .long 12 # unit_length = .short + .byte + .byte + .long + .long 39 .short 5 # version 40 .byte 4 # address_size 41 .byte 0 # segment_selector_size 42 .long 0x00000002 43 .long 0x00000003 44 45 .section .debug_addr,"",@progbits 46.Ldebug_addr2: 47 .long 12 # unit_length = .short + .byte + .byte + .long + .long 48 .short 4 # version 49 .byte 4 # address_size 50 .byte 0 # segment_selector_size 51 .long 0x00000000 52 .long 0x00000001 53 54