[mlir][PDLL] Allow (and ignore) `-D` tablegen macros. (#124166)
[llvm-project.git] / lldb / test / Shell / SymbolFile / DWARF / x86 / dir-separator-windows.s
blobc0154a674b81d6e166782fcd57611c86ab11c4e1
1 # Test that parsing of line tables works reasonably, even if the host directory
2 # separator does not match the separator of the compile unit.
4 # REQUIRES: lld
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
15 # CHECK-EMPTY:
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,
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
33 .section .debug_str,"MS",@progbits,1
34 .Linfo_string1:
35 .asciz "a.c"
36 .Linfo_string2:
37 .asciz "C:\\tmp"
38 .section .debug_abbrev,"",@progbits
39 .byte 1 # Abbreviation Code
40 .byte 17 # DW_TAG_compile_unit
41 .byte 0 # DW_CHILDREN_no
42 .byte 19 # DW_AT_language
43 .byte 5 # DW_FORM_data2
44 .byte 3 # DW_AT_name
45 .byte 14 # DW_FORM_strp
46 .byte 16 # DW_AT_stmt_list
47 .byte 23 # DW_FORM_sec_offset
48 .byte 27 # DW_AT_comp_dir
49 .byte 14 # DW_FORM_strp
50 .byte 0 # EOM(1)
51 .byte 0 # EOM(2)
52 .byte 0 # EOM(3)
53 .section .debug_info,"",@progbits
54 .Lcu_begin0:
55 .long .Lcu_end0-.Lcu_start0 # Length of Unit
56 .Lcu_start0:
57 .short 4 # DWARF version number
58 .long .debug_abbrev # Offset Into Abbrev. Section
59 .byte 8 # Address Size (in bytes)
60 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit
61 .short 12 # DW_AT_language
62 .long .Linfo_string1 # DW_AT_name
63 .long .Lline_table_start0 # DW_AT_stmt_list
64 .long .Linfo_string2 # DW_AT_comp_dir
65 .Lcu_end0:
66 .section .debug_line,"",@progbits
67 .Lline_table_start0: