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.
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
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
17 # CHECK-LABEL: breakpoint set -f a.c -l 1
18 # CHECK: Breakpoint 1: {{.*}}`_start,
20 # CHECK-LABEL: breakpoint set -f C:/tmp/b.c -l 1
21 # CHECK: Breakpoint 2: {{.*}}`_start + 1,
26 .file 1 "C:\\tmp\\a.c"
29 .file 2 "C:\\tmp\\b.c"
33 .section .debug_str,"MS",@progbits,1
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
43 .byte 14 # DW_FORM_strp
44 .byte 16 # DW_AT_stmt_list
45 .byte 23 # DW_FORM_sec_offset
49 .section .debug_info,"",@progbits
51 .long .Lcu_end0-.Lcu_start0 # Length of Unit
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
61 .section .debug_line,"",@progbits