命令行位于:

$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:
  @                Read options from
  -a --addresses         Show addresses
  -b --target=  Set the binary file format
  -e --exe=  Set the input file name (default is a.out)
  -i --inlines           Unwind inlined functions
  -j --section=    Read section-relative offsets instead of addresses
  -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

就能解析地址

更多相关文章

  1. android-ndk-r10d r13b下载地址
  2. android 9.0获取mac地址的方法
  3. Android 获取mac地址方法
  4. Android webview中定制js的alert,confirm和prompt对话框的方法 (
  5. android studio开发环境配置(指定SDK及卸载)附安装文件网盘地址(win
  6. Android GPS 定位 2 详细地址
  7. Android获取本机IP地址(不是localhost)和MAC的方法
  8. Android Studio 2.0 Instant Run无效(Instant Run没有闪电符号)
  9. android设备唯一码的获取,cpu号,mac地址

随机推荐

  1. Android(安卓)计时器 分:秒:毫秒 http://do
  2. android studio 报错 Lint found fatal e
  3. Android(安卓)动画
  4. Android拒绝来电的实现--ITelephony类的
  5. Android(安卓)上下文菜单
  6. android中listview分批加载数据
  7. Android手机访问web服务器(post请求)
  8. Android(安卓)AsyncTask Download
  9. Android判断是否触发ellipsize="end"(即t
  10. Android(安卓)- HTTP util class SyncGET