blob: b0ee8be29544e07991edceac072bc87a37455d82 [file] [log] [blame]
Victor Leschuk58d33992018-07-31 22:19:19 +00001# RUN: llvm-mc %s -filetype obj -triple i386-pc-linux -o %t.o
2# RUN: llvm-dwarfdump -debug-addr %t.o | FileCheck %s
3
4# CHECK: .debug_addr contents
5
6# CHECK-NEXT: length = 0x0000000c, version = 0x0005, addr_size = 0x04, seg_size = 0x00
7# CHECK-NEXT: Addrs: [
8# CHECK-NEXT: 0x00000000
9# CHECK-NEXT: 0x00000001
10# CHECK-NEXT: ]
11# CHECK-NEXT: length = 0x00000004, version = 0x0005, addr_size = 0x04, seg_size = 0x00
12# CHECK-NOT: {{.}}
13
14 .section .debug_abbrev,"",@progbits
15 .byte 1 # Abbreviation Code
16 .section .debug_info,"",@progbits
17.Lcu_begin0:
18 .long 8 # Length of Unit
19 .short 5 # DWARF version number
20 .byte 1 # DWARF unit type
21 .byte 4 # Address Size (in bytes)
22 .long .debug_abbrev # Offset Into Abbrev. Section
23
24 .section .debug_addr,"",@progbits
25.Ldebug_addr0:
26 .long 12 # unit_length = .short + .byte + .byte + .long + .long
27 .short 5 # version
28 .byte 4 # address_size
29 .byte 0 # segment_selector_size
30 .long 0x00000000
31 .long 0x00000001
32
33 .section .debug_addr,"",@progbits
34.Ldebug_addr1:
35 .long 4 # unit_length = .short + .byte + .byte
36 .short 5 # version
37 .byte 4 # address_size
38 .byte 0 # segment_selector_size