17 lines · plain
1# RUN: yaml2obj %S/Inputs/simple.wasm.yaml -o %t.wasm2 3# RUN: %lldb %t.wasm -o 'image dump symtab' | FileCheck %s --check-prefix SYMTAB4SYMTAB: Code 0x0000000000000002 0x0000000000000002 0x00000000 __wasm_call_ctors5SYMTAB: Code 0x0000000000000005 0x0000000000000029 0x00000000 add6SYMTAB: Code 0x000000000000002f 0x000000000000004c 0x00000000 __original_main7SYMTAB: Code 0x000000000000007c 0x0000000000000009 0x00000000 main8 9# RUN: %lldb %t.wasm -o 'image dump sections' | FileCheck %s --check-prefix SECTIONS10SECTIONS: 0x0000000000000001 code [0x0000000000000000-0x0000000000000085) --- 0x000001a1 0x00000085 0x00000000 symtab-wasm.test.tmp.wasm.code11SECTIONS: 0x0000000000000040 wasm-name --- 0x00000251 0x00000059 0x00000000 symtab-wasm.test.tmp.wasm.name12SECTIONS: 0x0000000000000100 data [0x0000000000000400-0x0000000000000409) --- 0x00000233 0x00000009 0x00000000 symtab-wasm.test.tmp.wasm..rodata13SECTIONS: 0x0000000000000200 data [0x000000000000040c-0x0000000000000410) --- 0x00000242 0x00000004 0x00000000 symtab-wasm.test.tmp.wasm..data14 15# RUN: %lldb %t.wasm -o 'x/s 0x0000000000000400' | FileCheck %s --check-prefix STR16STR: "data str"17