
Android(在Android中运行的gdbserver)说:
gdb: Unable to get location for thread creation breakpoint: requested event is not supported
那么,我怎么知道eclipse发送的gdb命令呢?
附言可以在cygwin shell中调试,只是不能在eclipse中调试.我不知道eclipse发送了哪些命令.
解决方法:
androID NDK中包含的gdbserver(至少从r4b开始)不支持在多个线程中进行调试.约翰·米歇尔(John Michelau)在这里发表评论后,我名义上幸运
http://honeypod.blogspot.com/2008/01/debug-native-application-for-android.html
Multi-threaded applications Now seem to be supported. The key is to run the GDB clIEnt from the one installed in the AndroID source tree at prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-gdb.
即使这样做,我也只能在加载本机库之后调试线程.这是因为GDB不了解AndroID的链接器:
总结warning: Unable to find dynamic linker breakpoint function. GDB will be unable to deBUG shared library initializers and track explicitly loaded dynamic code.
以上是内存溢出为你收集整理的从eclipse远程调试Android NDK程序全部内容,希望文章能够帮你解决从eclipse远程调试Android NDK程序所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)