`
ggsonic
  • 浏览: 259989 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

android gdb ndk so lib

阅读更多
1. adb root           
手机需要rooted,并且开发者选项中设置adb可以获得root权限;                                                                                                                         
root access is disabled by system setting - enable in settings -> development options

2. ndk-build 设置
 ndk-build NDK_DEBUG=1
   V=1 
Android.mk : LOCAL_CFLAGS := -g
(there should be gdb.setup gdbserver files under the libs/armeabi after ndk-build)..

3. adb shell
su
#am start -n com.xxx.xxx/.MainActivity
#ps |grep -i xxx
#gdbserver :5039 --attach your_process_id

4.
$adb forward tcp:5039 tcp:5039
$/Users/xxx/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi-gdb
5.
(from the libs/armeabi/gdb.setup file, get the following path)
(gdb)set solib-search-path /Users/xxxx/obj/local/armeabi-v7a
(gdb)directory /path/to/your/project's all source/directory
(gdb)target remote :5039
(gdb) bt full
(gdb) set logging on

references:
1. http://www.bobbog.com/archives/24
2. http://wiki.debian.org/HowToGetABacktrace
3. http://www.kandroid.org/online-pdk/guide/debugging_gdb.html
分享到:
评论

相关推荐

    Eclipse+CDT+GDB调试android_NDK程序

    Eclipse+CDT+GDB调试android_NDK程序

    Android NDK翻译之 NDK-GDB.html

    GDB是Android NDK进行C代码调试的工具,这个文件是NDK帮助文档的中文翻译版本

    Eclipse+CDT+GDB调试android NDK程序

    Eclipse+CDT+GDB调试android NDK程序

    linux下gdb.so

    gdb-so demo

    如果通过GDB调试NDK程序

    网上很多GDB NDK调试教程都已经过时了 我踩了太多坑, 经过几天的研究,终于把这些调试问题都解决,现奉献给大家。本文档在Ubuntu和NDK R14环境下 测试通过。

    aarch64-linux-android-gdb

    aarch64-linux-android-gdb 可调试arm64位内核的工具,目前自己测试可用

    android安装gdb说明

    android安装gdb说明文档,附相关资源的来源或者链接。

    使用GDB分析Android Crash问题

    软件是人思维的产物。智者千虑,必有一失,人的思维总有缺陷,反映到软件层面上就是程序 bug。程序 bug 的终极体现就是core dump,core dump 是软件错误无法恢复的产物。 我们经常见到的bug说“闪退、意外终止等”...

    NDK GDB 翻译

    ‘ndk-gdb’ Overview 重要:如果你要调试线程相关的程序,请阅读文档的‘Thread Support’部分。

    gdb+gdbserver教程

    Android 使用NDK自带的gdb+gdbserver进行so的动态调试

    android gdb工具(Linux版)

    本工具是为了开发android嵌入式产品时,可用来调试系统服务的GDB工具,作用跟linux下开发调式工具GDB一样,但该工具包括多部分,配置相对麻烦。

    《Android C++高级编程——使用NDK》_源码.zip

    《Android C++高级编程——使用NDK》提供了Java原生接口(JNI)的概述、Bionic API、POSIX 线程和套接字、C++支持、原生图形和声音API以及NEON/SIMD优化,在一个游戏应用案例的帮助下,你将学到很多关键技能。...

    Android C++高级编程: 使用NDK

    《移动开发经典丛书·Android C++高级编程:使用NDK》中我们将学习如何用AndroidNDK通过原生代码语言去实现自己的Android应用中对性能要求较高的部分。  《移动开发经典丛书·Android C++高级编程:使用NDK》介绍了...

    gdb for android

    android 设备的gdb调试工具,gdb版本7.11 ,使用android_ndk_r9c工具编译。使用时,adb push 工具到实际使用的目录采用, adb shell的方式进入android设备,然后 ./gdb 运行使用,开发这个的主要原因是为了解决内核...

    aarch64-linux-android-gdb.zip

    针对aarch64系统的gdb

    可以用于Android的gdb

    直接push到Android某目录下,然后adb shell登陆shell 就直接可以用这个gdb调试程序了

    Pro Android C++ with the NDK

    详细介绍Android的NDK开发 What is the Android platform, and getting up to speed with the Android NDK. Using the Eclipse IDE to streamline developing native applications How to use Java Native Interface...

    aarch64-linux-android gdb工具

    该gdb工具可以直接运行在android设备上进行gdb调试。无需gdbserver远程调试。 支持android 10以上 android_api 21

Global site tag (gtag.js) - Google Analytics