Eclipse无法执行MI命令-target-select remote

Shr*_*han 10 c++ eclipse gdb gdbserver

试图在eclipse中设置远程gdb调试.当我尝试调试我得到:

 Error in final launch sequence
 Failed to execute MI command: -target-select remote LOCALHOST:2345
 Error message from debugger back end:
  LOCALHOST:2345: Connection timed out.
  LOCALHOST:2345: Connection timed out.
Run Code Online (Sandbox Code Playgroud)

我的gdb调试器设置正确

 /carambola/carambola/build_dir/toolchain-mipsel_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gdb-linaro-7.2-2011.03-0/gdb/gdb
Run Code Online (Sandbox Code Playgroud)

(执行此操作我可以获得gdb shell)

知道我做错了什么吗?我觉得这很简单?

Shr*_*han 11

如果gdb客户端(在eclipse中)没有针对与gdb服务器相同的体系结构进行编译,就会发生这种情况.在eclipse调试中设置正确的gdb解决了这个问题