调试Android的JNI / C ++没有调试符号找到目标机器积极拒绝连接 [英] Debugging Android JNI/C++ No Debug Symbols Found Target Machine Actively Refused Connection

查看:181
本文介绍了调试Android的JNI / C ++没有调试符号找到目标机器积极拒绝连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是控制台日志:

(没有找到调试符号)
D:\\ WS \\测试\\ MyProject的\\ OBJ \\本地\\ armeabi \\ gdb2.setup:4:错误了源代码的命令文件:
:5039:无连接可以作出,因为目标机器积极地拒绝它。
本地主机:5039:无连接可以作出,因为目标机器积极地拒绝它。

(no debugging symbols found) D:\ws\test\MyProject\obj\local\armeabi\gdb2.setup:4: Error in sourced command file: :5039: No connection could be made because the target machine actively refused it. localhost:5039: No connection could be made because the target machine actively refused it.

以下为Eclipse插件塞阔亚的调试步骤:
http://www.eclipse.org/sequoyah/documentation/native_debug.php

Following debug steps for eclipse plugin sequoyah: http://www.eclipse.org/sequoyah/documentation/native_debug.php

我几乎在最后尝试连接的C ++调试。

I'm almost at the end trying to connect the C++ Debugging.

我的Andr​​oid.mk确实有以下设置:

My Android.mk does have the following set:

LOCAL_CFLAGS:= -g

LOCAL_CFLAGS := -g

这是我使用gdb的...我在Windows上。结果
C:\\ Android的NDK-R7 \\工具链\\ x86-4.4.3 \\ prebuilt \\ WINDOWS \\ BIN \\ i686的,Android的Linux的gdb.exe

this is the gdb I'm using ... I'm on windows.
C:\android-ndk-r7\toolchains\x86-4.4.3\prebuilt\windows\bin\i686-android-linux-gdb.exe

我还在试图让这几天工作。你能提供一个人(希望在塞阔亚队)提供一些深入了解如何得到这个工作在Windows上。

I'm still trying to get this to work for days. Could you provide someone (hopefully on Sequoyah team) provide some insight into how to get this to work on Windows.

推荐答案

的说明提这样做是为了您的gdb2.setup文件:

The instructions mention doing this to your gdb2.setup file:

移除目标远程:5039语句

removing the target remote:5039 statement

你没忘了这样做吗?

这篇关于调试Android的JNI / C ++没有调试符号找到目标机器积极拒绝连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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