Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / DebugInfo / symbolize-directory.s
blob3a92222817dda4292c9dce2a32b42dc5031e46d4
1 # REQUIRES: x86-registered-target
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 -dwarf-version=5 %s -o %t.o
4 # RUN: llvm-symbolizer --obj=%t.o --functions=none 0 1 | FileCheck %s
6 # CHECK: /home{{/|\\|\\\\}}0.cc:1:0
7 # CHECK: /tmp{{/|\\|\\\\}}1.cc:2:1
9 .Lfunc_begin0:
10 .file 0 "/home" "0.cc"
11 .file 1 "/tmp" "1.cc"
12 .loc 0 1 0 # 0.cc:1:0
13 nop
14 .loc 1 2 1 # 1.cc:2:1
15 nop
16 .loc 0 1 1 prologue_end # 0.cc:1:1
17 .Lfunc_end0:
19 .section .debug_abbrev,"",@progbits
20 .byte 1 # Abbreviation Code
21 .byte 17 # DW_TAG_compile_unit
22 .byte 1 # DW_children_yes
23 .byte 16 # DW_AT_stmt_list
24 .byte 23 # DW_FROM_sec_offset
25 .byte 17 # DW_AT_low_pc
26 .byte 1 # DW_FORM_addr
27 .byte 18 # DW_AT_high_pc
28 .byte 6 # DW_FORM_data4
29 .byte 0 # EOM(1)
30 .byte 0 # EOM(2)
32 .byte 2 # Abbreviation Code
33 .byte 46 # DW_TAG_subprogram
34 .byte 0 # DW_children_no
35 .byte 3 # DW_AT_name
36 .byte 8 # DW_FORM_string
37 .byte 17 # DW_AT_low_pc
38 .byte 1 # DW_FORM_addr
39 .byte 18 # DW_AT_high_pc
40 .byte 6 # DW_FORM_data4
41 .byte 0 # EOM(1)
42 .byte 0 # EOM(2)
44 .byte 0 # EOM(3)
46 .section .debug_info,"",@progbits
47 .Lcu_begin0:
48 .long .Lcu_end0-.Lcu_begin0-4 # Length of Unit
49 .short 5 # DWARF version number
50 .byte 1 # DWARF Unit Type
51 .byte 8 # Address Size (in bytes)
52 .long .debug_abbrev # Offset Into Abbrev.
53 .byte 1 # Abbrev [1]
54 .long 0 # DW_AT_stmt_list
55 .quad 0 # DW_AT_low_pc
56 .long 2 # DW_AT_high_pc
57 .byte 2 # Abbrev [2] DW_TAG_subprogram
58 .asciz "0.c" # DW_AT_name
59 .quad 0 # DW_AT_low_pc
60 .long 2 # DW_AT_high_pc
61 .byte 0
62 .Lcu_end0: