1# Test that we properly determine the path syntax of a compile unit even if the 2# compile unit does not have a DW_AT_comp_dir attribute. 3 4# REQUIRES: lld, x86 5 6# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj > %t.o 7# RUN: ld.lld %t.o -o %t -z separate-code 8# RUN: %lldb %t -s %S/Inputs/dir-separator-windows.lldbinit -o exit | FileCheck %s 9 10# CHECK-LABEL: image dump line-table a.c 11# CHECK: Line table for C:\tmp\a.c 12# CHECK-NEXT: 0x0000000000201000: C:\tmp\a.c:1 13# CHECK-NEXT: 0x0000000000201001: C:\tmp\b.c:1 14# CHECK-NEXT: 0x0000000000201002: C:\tmp\b.c:1 15# CHECK-EMPTY: 16 17# CHECK-LABEL: breakpoint set -f a.c -l 1 18# CHECK: Breakpoint 1: {{.*}}`_start, 19 20# CHECK-LABEL: breakpoint set -f C:/tmp/b.c -l 1 21# CHECK: Breakpoint 2: {{.*}}`_start + 1, 22 23 .text 24 .globl _start 25_start: 26 .file 1 "C:\\tmp\\a.c" 27 .loc 1 1 0 28 nop 29 .file 2 "C:\\tmp\\b.c" 30 .loc 2 1 0 31 nop 32 33 .section .debug_str,"MS",@progbits,1 34.Linfo_string1: 35 .asciz "C:\\tmp\\a.c" 36 .section .debug_abbrev,"",@progbits 37 .byte 1 # Abbreviation Code 38 .byte 17 # DW_TAG_compile_unit 39 .byte 0 # DW_CHILDREN_no 40 .byte 19 # DW_AT_language 41 .byte 5 # DW_FORM_data2 42 .byte 3 # DW_AT_name 43 .byte 14 # DW_FORM_strp 44 .byte 16 # DW_AT_stmt_list 45 .byte 23 # DW_FORM_sec_offset 46 .byte 0 # EOM(1) 47 .byte 0 # EOM(2) 48 .byte 0 # EOM(3) 49 .section .debug_info,"",@progbits 50.Lcu_begin0: 51 .long .Lcu_end0-.Lcu_start0 # Length of Unit 52.Lcu_start0: 53 .short 4 # DWARF version number 54 .long .debug_abbrev # Offset Into Abbrev. Section 55 .byte 8 # Address Size (in bytes) 56 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit 57 .short 12 # DW_AT_language 58 .long .Linfo_string1 # DW_AT_name 59 .long .Lline_table_start0 # DW_AT_stmt_list 60.Lcu_end0: 61 .section .debug_line,"",@progbits 62.Lline_table_start0: 63