- arm-linux-androideabi-addr2line
// NDK目录
// android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin
./arm-linux-androideabi-addr2line -f -C -e libunity.dbg.so 00594728
- 批处理
将堆栈地址按行分隔,存储在log.txt中。然后执行以下命令
#!/bin/bash
cat log.txt | while read LINE
do
./Users/wxl/Software/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -f -C -e libunity.dbg.so $LINE
done