63 lines · plain
1# Test that we properly determine the path syntax of a compile unit even if the2# compile unit does not have a DW_AT_comp_dir attribute.3 4# REQUIRES: lld5 6# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o7# RUN: ld.lld %t.o -o %t -z separate-code8# RUN: %lldb %t -s %S/Inputs/dir-separator-windows.lldbinit -o exit | FileCheck %s9 10# CHECK-LABEL: image dump line-table a.c11# CHECK: Line table for C:\tmp\a.c12# CHECK-NEXT: 0x0000000000201000: C:\tmp\a.c:113# CHECK-NEXT: 0x0000000000201001: C:\tmp\b.c:114# CHECK-NEXT: 0x0000000000201002: C:\tmp\b.c:115# CHECK-EMPTY:16 17# CHECK-LABEL: breakpoint set -f a.c -l 118# CHECK: Breakpoint 1: {{.*}}`_start,19 20# CHECK-LABEL: breakpoint set -f C:/tmp/b.c -l 121# CHECK: Breakpoint 2: {{.*}}`_start + 1,22 23 .text24 .globl _start25_start:26 .file 1 "C:\\tmp\\a.c"27 .loc 1 1 028 nop29 .file 2 "C:\\tmp\\b.c"30 .loc 2 1 031 nop32 33 .section .debug_str,"MS",@progbits,134.Linfo_string1:35 .asciz "C:\\tmp\\a.c"36 .section .debug_abbrev,"",@progbits37 .byte 1 # Abbreviation Code38 .byte 17 # DW_TAG_compile_unit39 .byte 0 # DW_CHILDREN_no40 .byte 19 # DW_AT_language41 .byte 5 # DW_FORM_data242 .byte 3 # DW_AT_name43 .byte 14 # DW_FORM_strp44 .byte 16 # DW_AT_stmt_list45 .byte 23 # DW_FORM_sec_offset46 .byte 0 # EOM(1)47 .byte 0 # EOM(2)48 .byte 0 # EOM(3)49 .section .debug_info,"",@progbits50.Lcu_begin0:51 .long .Lcu_end0-.Lcu_start0 # Length of Unit52.Lcu_start0:53 .short 4 # DWARF version number54 .long .debug_abbrev # Offset Into Abbrev. Section55 .byte 8 # Address Size (in bytes)56 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit57 .short 12 # DW_AT_language58 .long .Linfo_string1 # DW_AT_name59 .long .Lline_table_start0 # DW_AT_stmt_list60.Lcu_end0:61 .section .debug_line,"",@progbits62.Lline_table_start0:63