Android NDK so crash,定位目标代码使用
命令行位于:
$NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line
用法示意:
arm-linux-androideabi-addr2line -e 有符号的so crash内存地址
--help:
Usage: arm-linux-androideabi-addr2line [option(s)] [addr(s)]
Convert addresses into line number/file name pairs.
If no addresses are specified on the command line, they will be read from stdin
The options are:
@
-a --addresses Show addresses
-b --target=
-e --exe=
-i --inlines Unwind inlined functions
-j --section=
-p --pretty-print Make the output easier to read for humans
-s --basenames Strip directory names
-f --functions Show function names
-C --demangle[=style] Demangle function names
-h --help Display this information
-v --version Display the program's version
arm-linux-androideabi-addr2line: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
Report bugs to
64位使用
aarch64-linux-android-addr2line
32位使用
arm-linux-androideabi-addr2line
例子
aarch64-linux-android-addr2line -e ~/Download/libxxx.so 0000000 0151ee4c
就能解析地址
更多相关文章
- android-ndk-r10d r13b下载地址
- android 9.0获取mac地址的方法
- Android 获取mac地址方法
- Android webview中定制js的alert,confirm和prompt对话框的方法 (
- android studio开发环境配置(指定SDK及卸载)附安装文件网盘地址(win
- Android GPS 定位 2 详细地址
- Android获取本机IP地址(不是localhost)和MAC的方法
- Android Studio 2.0 Instant Run无效(Instant Run没有闪电符号)
- android设备唯一码的获取,cpu号,mac地址