48 lines · plain
1# This tests handling of debug info with fully relative paths, such as those2# produced by "clang -fdebug-compilation-dir <something-relative>". This is one3# of the techniques used to produce "relocatable" debug info.4 5# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux -o %t %s6# RUN: %lldb %t -o "image dump line-table t.c" | FileCheck %s7 8# CHECK: 0x0000000000000000: {{q[\\/]w[\\/]e[\\/]r[\\/]t}}.c:19 10 .text11main:12 .file 1 "w/e/r" "t.c"13 .loc 1 1 0 # w/e/r/t.c:1:014 retq15 16 .section .debug_abbrev,"",@progbits17 .byte 1 # Abbreviation Code18 .byte 17 # DW_TAG_compile_unit19 .byte 0 # DW_CHILDREN_no20 .byte 37 # DW_AT_producer21 .byte 8 # DW_FORM_string22 .byte 3 # DW_AT_name23 .byte 8 # DW_FORM_string24 .byte 16 # DW_AT_stmt_list25 .byte 23 # DW_FORM_sec_offset26 .byte 27 # DW_AT_comp_dir27 .byte 8 # DW_FORM_string28 .byte 0 # EOM(1)29 .byte 0 # EOM(2)30 .byte 0 # EOM(3)31 32 .section .debug_info,"",@progbits33.Lcu_begin0:34 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit35.Ldebug_info_start0:36 .short 4 # DWARF version number37 .long .debug_abbrev # Offset Into Abbrev. Section38 .byte 8 # Address Size (in bytes)39 .byte 1 # Abbrev [1] 0xb:0x40 DW_TAG_compile_unit40 .asciz "Hand-written DWARF" # DW_AT_producer41 .asciz "w/e/r/t.c" # DW_AT_name42 .long .Lline_table_start0 # DW_AT_stmt_list43 .asciz "q" # DW_AT_comp_dir44.Ldebug_info_end0:45 46 .section .debug_line,"",@progbits47.Lline_table_start0:48