mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
23 lines
615 B
Bash
23 lines
615 B
Bash
|
#!/bin/bash
|
||
|
set -euox pipefail
|
||
|
|
||
|
# Symbolicate .wasm
|
||
|
python3 ../../../test-tools/addr2line/addr2line.py \
|
||
|
--wasi-sdk /opt/wasi-sdk \
|
||
|
--wabt /opt/wabt \
|
||
|
--wasm-file wasm-apps/trap.wasm \
|
||
|
call_stack.txt
|
||
|
|
||
|
# Symbolicate .wasm with `--no-addr`
|
||
|
python3 ../../../test-tools/addr2line/addr2line.py \
|
||
|
--wasi-sdk /opt/wasi-sdk \
|
||
|
--wabt /opt/wabt \
|
||
|
--wasm-file wasm-apps/trap.wasm \
|
||
|
call_stack.txt --no-addr
|
||
|
|
||
|
# Symbolicate .aot
|
||
|
python3 ../../../test-tools/addr2line/addr2line.py \
|
||
|
--wasi-sdk /opt/wasi-sdk \
|
||
|
--wabt /opt/wabt \
|
||
|
--wasm-file wasm-apps/trap.wasm \
|
||
|
call_stack_aot.txt
|