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
13 .loc 1 1 0 # w/e/r/t.c:1:0
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
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
32 .section .debug_info,"",@progbits
34 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
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
46 .section .debug_line,"",@progbits