调试使用NDK-gdb的Andr​​oid原生应用程序 [英] Debugging Android native application using ndk-gdb

查看:256
本文介绍了调试使用NDK-gdb的Andr​​oid原生应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试我有一些原生Android应用程序(C ++),使用NDK-GDB在eclipse.It code似乎被GDB服务器的命令行成功启动并正在采取命令。
但在日食它显示此错误:
出错从设备获取文件
com.android.ddmlib.SyncException:写入本地文件失败。

I am trying to debug my android application having some native(c++) code using ndk-gdb in eclipse.It seems that by gdb server starts successfully from command line and is taking commands. But in eclipse it is showing this error : Error while obtaining file from device com.android.ddmlib.SyncException: Writing local file failed

任何一个可以帮助我,请。

Any one help me please.

推荐答案

似乎调试框架需要一个 OBJ /本地/ armeabi 文件夹中。

It seems that the framework for debugging requires an obj/local/armeabi folder.

如果您打开本机调试的启动文件, .metadata / .plugins / org.ecipse.debug.core / .launches / *。启动,你会查看该XML文件的引用:

If you open the launch file for native debugging, .metadata/.plugins/org.ecipse.debug.core/.launches/*.launch, you'll see a reference in that xml file:

< stringAttribute键=org.eclipse.cdt.launch.PROGRAM_NAMEVALUE =/ projectroot / OBJ /本地/ armeabi / app_process/>

有一次,我在磁盘上创建该文件夹这个错误消退,我能够调试。有可能是解决这个问题一个比较正确的做法,但我只是决定这是很简单的创建该文件夹。

Once I created this folder on disk this error subsided, and I was able to debug. There may be a more correct way to fix this, but I simply decided it was simple enough to create this folder.

这篇关于调试使用NDK-gdb的Andr​​oid原生应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆