56 lines · plain
1# Test that lldb can read a line table for an architecture with a different2# address size than the one that of the host.3 4# REQUIRES: lld5 6# RUN: llvm-mc -triple i686-windows-gnu %s -filetype=obj > %t.o7# RUN: lld-link %t.o -out:%t.exe -debug:dwarf -entry:entry -subsystem:console -lldmingw8# RUN: %lldb %t.exe -o "image dump line-table -v win-i386-line-table.c" -b | FileCheck %s9 10# CHECK: Line table for win-i386-line-table.c in `win-i386-line-table.s.tmp.exe11# CHECK: 0x00401000: win-i386-line-table.c:2:112# CHECK: 0x00401001: win-i386-line-table.c:2:113 14 .text15 .file "win-i386-line-table.c"16 .globl _entry # -- Begin function entry17_entry: # @entry18 .file 1 "" "win-i386-line-table.c"19 .loc 1 1 0 # win-i386-line-table.c:1:020 .cfi_sections .debug_frame21 .cfi_startproc22 .loc 1 2 1 prologue_end # win-i386-line-table.c:2:123 retl24 .cfi_endproc25 # -- End function26 .section .debug_str,"dr"27Linfo_string1:28 .asciz "win-i386-line-table.c"29 .section .debug_abbrev,"dr"30Lsection_abbrev:31 .byte 1 # Abbreviation Code32 .byte 17 # DW_TAG_compile_unit33 .byte 1 # DW_CHILDREN_yes34 .byte 3 # DW_AT_name35 .byte 14 # DW_FORM_strp36 .byte 16 # DW_AT_stmt_list37 .byte 23 # DW_FORM_sec_offset38 .byte 0 # EOM(1)39 .byte 0 # EOM(2)40 .byte 0 # EOM(3)41 .section .debug_info,"dr"42Lsection_info:43Lcu_begin0:44 .long Ldebug_info_end0-Ldebug_info_start0 # Length of Unit45Ldebug_info_start0:46 .short 4 # DWARF version number47 .secrel32 Lsection_abbrev # Offset Into Abbrev. Section48 .byte 4 # Address Size (in bytes)49 .byte 1 # Abbrev [1] 0xb:0x2d DW_TAG_compile_unit50 .secrel32 Linfo_string1 # DW_AT_name51 .secrel32 Lline_table_start0 # DW_AT_stmt_list52 .byte 0 # End Of Children Mark53Ldebug_info_end0:54 .section .debug_line,"dr"55Lline_table_start0:56