Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Address values in call stack dump are relative to file beginning
- If running under fast-interp mode, address values are relative to
  every pre-compiled function beginning, which is not compatible
  with addr2line

Signed-off-by: victoryang00 <[email protected]>
  • Loading branch information
lum1n0us authored and victoryang00 committed May 27, 2024
1 parent 6843461 commit 88caeaa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test-tools/addr2line/addr2line.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,4 +410,14 @@ def main():


if __name__ == "__main__":
print(
"**************************************************\n"
+ "Before running this script, please make sure:\n"
+ " - the wasm file is compiled with debug info. (like: clang -g) \n"
+ " - the call-stack dump is generated by iwasm\n"
+ " - iwasm is compiled with -DWAMR_BUILD_DUMP_CALL_STACK=1\n"
+ " - iwasm isn't running under fast-interp mode. -DWAMR_BUILD_FAST_INTERP=0\n"
+ " - if using .aot, the aot file is generated with `--enable-dump-call-stack`\n"
+ "**************************************************\n"
)
sys.exit(main())

0 comments on commit 88caeaa

Please sign in to comment.