39 lines · plain
1# The .debug_info section says 8-byte addresses, but the assembler2# will generate a line table with 4-byte addresses (for i686).3 4# RUN: llvm-mc -filetype=obj -triple i686-linux-gnu %s -o - | \5# RUN: llvm-dwarfdump -debug-line - 2>&1 | FileCheck %s6 7# CHECK: warning: mismatching address size at offset 0x{{[0-9a-f]+}}8# CHECK-SAME: expected 0x08 found 0x049 .text10 .file "reduced.c"11 .globl main12main:13 .file 1 "/tmp" "reduced.c"14 .loc 1 2 015 xorl %eax, %eax16 retl17 .file 2 "/tmp/repeat/repeat/repeat/repeat" "repeat.h"18 19 .section .debug_abbrev,"",@progbits20 .byte 1 # Abbreviation Code21 .byte 17 # DW_TAG_compile_unit22 .byte 0 # DW_CHILDREN_no23 .byte 16 # DW_AT_stmt_list24 .byte 23 # DW_FORM_sec_offset25 .byte 0 # EOM(1)26 .byte 0 # EOM(2)27 .byte 0 # EOM(3)28 29 .section .debug_info,"",@progbits30 .long .Lend0 - .Lbegin0 # Length of Unit31.Lbegin0:32 .short 4 # DWARF version number33 .long .debug_abbrev # Offset Into Abbrev. Section34 .byte 8 # Address Size (in bytes)35 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit36 .long .debug_line # DW_AT_stmt_list37.Lend0:38 .section .debug_line,"",@progbits39