本文介绍了Eclipse中塞阔亚无法调试本地JNI code:无连接机器积极拒绝,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照本文档中的步骤:

同这个家伙的问题:

我只是改变了gdb.setup文件指示指向端口5039,这是发生了什么。

为什么会有两个NU调试符号发现,并没有连接可以作出?

下面是日志在eclipse:

  D:\\ WS \\测试\\项目\\ OBJ \\本地\\ armeabi \\ gdb2.setup:1:错误在了源代码的命令文件:
未定义命令:1套。尝试帮助。
(没有找到调试符号)
31 GDB-组确认关闭
31 ^ DONE
32 GDB-设置宽度0
(GDB)
32 ^ DONE
33-GDB-设定高度0
(GDB)
33 ^ DONE
34间preTER-Exec控制台回声
(GDB)
34 ^ DONE
35 GDB出现提示
(GDB)
35 ^ DONE,值=(GDB)
36 GDB设置自动solib,加上
(GDB)
36 ^ DONE
37 GDB设置止损上solib事件0
(GDB)
37 ^ DONE
38 GDB设置止损上solib事件1
(GDB)
38 ^ DONE
39 - 目标 - 选择远程本地主机:5039
(GDB)
&安培;本地主机:5039:无连接可以作出,因为目标机器积极拒绝,\\ n
本地主机:5039:无连接可以作出,因为目标机器积极地拒绝它。
39 ^错误,味精=本地主机:5039:无连接可以作出,因为目标机器积极地拒绝它
(GDB)
40 GDB出境
40 ^退出


解决方案

我想你指的教程,并没有成功。然后我用这些教程,并得到了类似的调试工作魅力:

I'm following steps in this document: http://www.eclipse.org/sequoyah/documentation/native_debug.php

Same as this guys issue: http://www.eclipse.org/forums/index.php/m/724431/

I just changed the gdb.setup file to point to port 5039 as indicated and this is what happens.

Why would there be both nu debugging symbols found, AND no connection could be made?

Here is the log in eclipse:

D:\ws\test\Project\obj\local\armeabi\gdb2.setup:1: Error in sourced command file:
Undefined command: "1set".  Try "help".
(no debugging symbols found)
31-gdb-set confirm off
31^done
32-gdb-set width 0
(gdb) 
32^done
33-gdb-set height 0
(gdb) 
33^done
34-interpreter-exec console echo
(gdb) 
34^done
35-gdb-show prompt
(gdb) 
35^done,value="(gdb) "
36-gdb-set auto-solib-add on
(gdb) 
36^done
37-gdb-set stop-on-solib-events 0
(gdb) 
37^done
38-gdb-set stop-on-solib-events 1
(gdb) 
38^done
39-target-select remote localhost:5039
(gdb) 
&"localhost:5039: No connection could be made because the target machine actively refused it.\n"
localhost:5039: No connection could be made because the target machine actively refused it.
39^error,msg="localhost:5039: No connection could be made because the target machine actively refused it."
(gdb) 
40-gdb-exit
40^exit
解决方案

I tried the tutorial you are referring to, and didn't succeed. Then I used these tutorials and got debugging working like charm:

http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/

http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/#more-23

这篇关于Eclipse中塞阔亚无法调试本地JNI code:无连接机器积极拒绝,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 10:22