ndk-gdb 调试方法:android
1 androidManifast.xml 中设置 android:debuggable="true"eclipse
2 eclipse 启动调试,并在调用 jni 代码行打断点,等待spa
3 Android 中操做,直到 eclipse 中断点,debug
4 eclipse 中运行至jni 断点 ,调试
这时在 Terminl 中进行当前 工程目录 , cd myAndroidPj/xml
启动 ndk-gdb ($ ndk-gdb)ip
接下来,就是gdb 的命令了!!ast
关键 点2,3,4 步。cli