Debian Codegraph @

llvm/test/tools/llvm-dwarfdump/X86/debug_addr_address_size_mismatch.s

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