且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在生成的Andr​​oid核心转储

更新时间:2023-09-18 09:25:46

NDK的带有NDK-gdb的,据称可以让你调试本地应用程序。另外,如果你下载整个的Andr​​iod开源项目,他们也有一些版本用于调试GDB的。期待中的NDK以了解如何使用它的文档/文件夹。本教程还可能证明是有益的:的http://vilimpoc.org/blog/2010/09/23/hello-gdbserver-a-debuggable-jni-example-for-android/

The ndk comes with ndk-gdb, which supposedly allows you to debug native applications. Also, if you download the whole andriod open source project, they also have some version of gdb used for debugging. Look in the docs/ folder of the ndk to learn about using it. This tutorial might also prove helpful: http://vilimpoc.org/blog/2010/09/23/hello-gdbserver-a-debuggable-jni-example-for-android/

然而,如在最近的问题,我问:Running NDK-GDB的包没有发现错误摩托罗拉手机我仍然无法得到它的工作。

However, as shown in a recent question I asked: Running ndk-gdb with package not found error on motorola phone I still can't get it to work.

编辑:三星决定破坏严重破坏一些需要本机调试的关键内部的,但它是很容易可以解决的,如果你有root权限的设备:您可以在你使用的是三星设备的评论说。如果使用--verbose标志,你可能会发现,误差比,包未知错误不同。这是因为它看起来在/data/system/packages.list,但三星重命名的文件/dbdata/system/packages.list。所以,如果你犯了一个符号链接到/data/system/packages.list该文件,(需要root访问权限),它应该工作。或者至少是声称NDK的邮件列表: http://osdir.com /ml/android-ndk/2011-03/msg00036.html

You said in the comments you were using a Samsung Device: Samsung decide to wreck havoc on some of the crucial internals required for native debugging, but it's easily fixable if you have root access to the device. If you use the --verbose flag, you'll probably find that the error is different than that, a package unknown error. That's because it's looking in /data/system/packages.list, but samsung renamed that file to /dbdata/system/packages.list. So if you make a symlink to that file in /data/system/packages.list, (requires root access) it should work. Or at least so claims the ndk mailing list: http://osdir.com/ml/android-ndk/2011-03/msg00036.html