Eclipse Sequoyah无法调试本机JNI代码:没有连接机器主动拒绝它

时间:2011-12-06 05:20:02

标签: c++ eclipse debugging java-native-interface android-ndk

我正在按照本文档中的步骤操作: http://www.eclipse.org/sequoyah/documentation/native_debug.php

与这个人问题相同:http://www.eclipse.org/forums/index.php/m/724431/

我刚刚将gdb.setup文件更改为指向端口5039,这就是发生的情况。

为什么会找到两个nu调试符号,并且不能建立连接?

以下是日食中的日志:

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

1 个答案:

答案 0 :(得分:0)

我尝试了你所指的教程,但没有成功。然后我使用了这些教程,调试就像魅力一样:

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