- 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中备籽。然后執(zhí)行以下命令
#!/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