89 lines · yaml
1# RUN: rm -rf %t2# RUN: mkdir %t3# RUN: cd %t4# RUN: yaml2obj --docnum=1 %s -o test.wasm5# RUN: yaml2obj --docnum=2 %s -o test_sym.wasm6# RUN: lldb-test object-file test.wasm | FileCheck %s7 8# This test checks that SymbolVendorWasm correctly loads DWARF debug sections9# that have been stripped out into a separated Wasm module. The original Wasm10# module contains a "external_debug_info" custom section with the absolute or11# relative path of the debug module.12 13# CHECK: Plugin name: wasm14# CHECK: Architecture: wasm32-unknown-unknown-wasm15# CHECK: UUID: 16# CHECK: Executable: false17# CHECK: Stripped: true18# CHECK: Type: shared library19# CHECK: Strata: user20# CHECK: Base VM address: 0x021 22# CHECK: Name: code23# CHECK: Type: code24# CHECK: VM address: 0x025# CHECK: VM size: 5626# CHECK: File size: 5627 28# CHECK: Name: .debug_info29# CHECK: Type: dwarf-info30# CHECK: VM address: 0x031# CHECK: VM size: 032# CHECK: File size: 233 34# CHECK: Name: .debug_abbrev35# CHECK: Type: dwarf-abbrev36# CHECK: VM address: 0x037# CHECK: VM size: 038# CHECK: File size: 239 40# CHECK: Name: .debug_line41# CHECK: Type: dwarf-line42# CHECK: VM address: 0x043# CHECK: VM size: 044# CHECK: File size: 245 46# CHECK: Name: .debug_str47# CHECK: Type: dwarf-str48# CHECK: VM address: 0x049# CHECK: VM size: 050# CHECK: File size: 351 52--- !WASM53FileHeader:54 Version: 0x0000000155Sections:56 - Type: CODE57 Functions:58 - Index: 059 Locals:60 - Type: I3261 Count: 662 Body: 238080808000210141102102200120026B21032003200036020C200328020C2104200328020C2105200420056C210620060F0B63 - Type: CUSTOM64 Name: external_debug_info65 Payload: 0D746573745F73796D2E7761736D # test_sym.wasm66 67...68 69 70--- !WASM71FileHeader:72 Version: 0x0000000173Sections:74 75 - Type: CUSTOM76 Name: .debug_info77 Payload: 4C0078 - Type: CUSTOM79 Name: .debug_abbrev80 Payload: 011181 - Type: CUSTOM82 Name: .debug_line83 Payload: 510084 - Type: CUSTOM85 Name: .debug_str86 Payload: 636CFF87 88...89