Android Native crash tomestone trace 批量转换trace方法
Android O源代码下有批量转换 Native trace 工具 development/scripts/stack
帮助信息:
usage: ./stack [options] [FILE]
--arch=arm|arm64|mips|mips64|x86|x86_64
the target architecture
FILE should contain a stack trace in it somewhere
the tool will find that and re-print it with
source files and line numbers. If you don't
pass FILE, or if file is -, it reads from
stdin.
事例:
- adb shell kill -3 PID
- adb pull /data/tombstones
- development/scripts/stack –arch x86_64 tombstones/tombstone_00
以下方式也可以获取trace:
adb shell -b PID |tee native_crash_trace.txt
符号文件会自动从当前目录搜索,无需设置。
转换后的效果非常好,由于security 不方粘贴。