Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / Shell / SymbolFile / DWARF / x86 / debug_line-relative_path.s
blob609984bf7e737c8314815805340daf8e8f3f1afb
1 # This tests handling of debug info with fully relative paths, such as those
2 # produced by "clang -fdebug-compilation-dir <something-relative>". This is one
3 # of the techniques used to produce "relocatable" debug info.
5 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux -o %t %s
6 # RUN: %lldb %t -o "image dump line-table t.c" | FileCheck %s
8 # CHECK: 0x0000000000000000: {{q[\\/]w[\\/]e[\\/]r[\\/]t}}.c:1
10 .text
11 main:
12 .file 1 "w/e/r" "t.c"
13 .loc 1 1 0 # w/e/r/t.c:1:0
14 retq
16 .section .debug_abbrev,"",@progbits
17 .byte 1 # Abbreviation Code
18 .byte 17 # DW_TAG_compile_unit
19 .byte 0 # DW_CHILDREN_no
20 .byte 37 # DW_AT_producer
21 .byte 8 # DW_FORM_string
22 .byte 3 # DW_AT_name
23 .byte 8 # DW_FORM_string
24 .byte 16 # DW_AT_stmt_list
25 .byte 23 # DW_FORM_sec_offset
26 .byte 27 # DW_AT_comp_dir
27 .byte 8 # DW_FORM_string
28 .byte 0 # EOM(1)
29 .byte 0 # EOM(2)
30 .byte 0 # EOM(3)
32 .section .debug_info,"",@progbits
33 .Lcu_begin0:
34 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
35 .Ldebug_info_start0:
36 .short 4 # DWARF version number
37 .long .debug_abbrev # Offset Into Abbrev. Section
38 .byte 8 # Address Size (in bytes)
39 .byte 1 # Abbrev [1] 0xb:0x40 DW_TAG_compile_unit
40 .asciz "Hand-written DWARF" # DW_AT_producer
41 .asciz "w/e/r/t.c" # DW_AT_name
42 .long .Lline_table_start0 # DW_AT_stmt_list
43 .asciz "q" # DW_AT_comp_dir
44 .Ldebug_info_end0:
46 .section .debug_line,"",@progbits
47 .Lline_table_start0: