android gdb windows,非root Android 设备用gdbserver进行native 调试的方法

[Bash shell] 纯文本查看 复制代码> $NDK_PATH/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb ~/Android/app_process

GNU gdb (GDB) 7.6

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show copying"

and "show warranty" for details.

This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".

For bug reporting instructions, please see:

...

Reading symbols from /home/henices/Android/app_process...(no debugging symbols found)...done.

(gdb) target remote :5039

Remote debugging using :5039

warning: Could not load shared library symbols for 100 libraries, e.g. /system/bin/linker.

Use the "info sharedlibrary" command to see the complete listing.

Do you need "set solib-search-path" or "set sysroot"?

warning: Unable to find dynamic linker breakpoint function.

GDB will be unable to debug shared library initializers

and track explicitly loaded dynamic code.

0x4013a73c in ?? ()

(gdb) info proc

process 16907

cmdline = 'com.heen.CVE_2014_7911'

cwd = '/'

exe = '/system/bin/app_process'

(gdb) set solib-search-path ~/Android:~/Android/system_lib/:~/Android/vendor_lib/

(gdb) info sharedlibrary

0x400f3a60 0x400fe79c Yes (*) /home/henices/Android/linker

0x40126070 0x401566ec Yes (*) /home/henices/Android/system_lib/libc.so

0x40174828 0x401749c8 Yes (*) /home/henices/Android/system_lib/libstdc++.so

0x401798f0 0x4018c478 Yes (*) /home/henices/Android/system_lib/libm.so

0x40114f50 0x40116490 Yes (*) /home/henices/Android/system_lib/liblog.so

0x4010c38c 0x40110988 Yes (*) /home/henices/Android/system_lib/libcutils.so

0x401acb1c 0x401af20c Yes (*) /home/henices/Android/system_lib/libgccdemangle.so

0x401a81d0 0x401a94ac Yes (*) /home/henices/Android/system_lib/libcorkscrew.so

0x4019b780 0x401a1f24 Yes (*) /home/henices/Android/system_lib/libutils.so

0x401cbc50 0x401d5ba4 Yes (*) /home/henices/Android/system_lib/libbinder.so

0x402955f0 0x4029585c Yes (*) /home/henices/Android/system_lib/libhardware.so

0x402925d0 0x40292834 Yes (*) /home/henices/Android/system_lib/libmemtrack.so

0x402bbbf0 0x402cb80c Yes (*) /home/henices/Android/system_lib/libz.so

0x402a4240 0x402b23fc Yes (*) /home/henices/Android/system_lib/libandroidfw.so

0x402d6774 0x402e53a0 Yes (*) /home/henices/Android/system_lib/libexpat.so

0x403083a8 0x4031e684 Yes (*) /home/henices/Android/system_lib/libstlport.so

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值