[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / lldb / test / Shell / ObjectFile / wasm / unified-debug-sections.yaml
bloba1461c33671ded98545611b3e826d00ed1f4f6b8
1 # RUN: rm -rf %t
2 # RUN: mkdir %t
3 # RUN: cd %t
4 # RUN: yaml2obj --docnum=1 %s -o test.wasm
5 # RUN: yaml2obj --docnum=2 %s -o test_sym.wasm
6 # RUN: lldb-test object-file test.wasm | FileCheck %s
8 # This test checks that SymbolVendorWasm correctly loads DWARF debug sections
9 # that have been stripped out into a separated Wasm module. The original Wasm
10 # module contains a "external_debug_info" custom section with the absolute or
11 # relative path of the debug module.
13 # CHECK: Plugin name: wasm
14 # CHECK: Architecture: wasm32-unknown-unknown-wasm
15 # CHECK: UUID: 
16 # CHECK: Executable: false
17 # CHECK: Stripped: true
18 # CHECK: Type: shared library
19 # CHECK: Strata: user
20 # CHECK: Base VM address: 0x0
22 # CHECK: Name: code
23 # CHECK: Type: code
24 # CHECK: VM address: 0x0
25 # CHECK: VM size: 56
26 # CHECK: File size: 56
28 # CHECK: Name: .debug_info
29 # CHECK: Type: dwarf-info
30 # CHECK: VM address: 0x0
31 # CHECK: VM size: 0
32 # CHECK: File size: 2
34 # CHECK: Name: .debug_abbrev
35 # CHECK: Type: dwarf-abbrev
36 # CHECK: VM address: 0x0
37 # CHECK: VM size: 0
38 # CHECK: File size: 2
40 # CHECK: Name: .debug_line
41 # CHECK: Type: dwarf-line
42 # CHECK: VM address: 0x0
43 # CHECK: VM size: 0
44 # CHECK: File size: 2
46 # CHECK: Name: .debug_str
47 # CHECK: Type: dwarf-str
48 # CHECK: VM address: 0x0
49 # CHECK: VM size: 0
50 # CHECK: File size: 3
52 --- !WASM
53 FileHeader:
54   Version:         0x00000001
55 Sections:
56   - Type:            CODE
57     Functions:
58       - Index:           0
59         Locals:
60           - Type:            I32
61             Count:           6
62         Body:            238080808000210141102102200120026B21032003200036020C200328020C2104200328020C2105200420056C210620060F0B
63   - Type:            CUSTOM
64     Name:            external_debug_info
65     Payload:         0D746573745F73796D2E7761736D  # test_sym.wasm
67 ...
70 --- !WASM
71 FileHeader:
72   Version:         0x00000001
73 Sections:
75   - Type:            CUSTOM
76     Name:            .debug_info
77     Payload:         4C00
78   - Type:            CUSTOM
79     Name:            .debug_abbrev
80     Payload:         0111
81   - Type:            CUSTOM
82     Name:            .debug_line
83     Payload:         5100
84   - Type:            CUSTOM
85     Name:            .debug_str
86     Payload:         636CFF
88 ...