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