OStack程序员社区-中国程序员成长平台

标题: c++ - Eclipse 执行 MI 命令 -target-select remote 失败 [打印本页]

作者: 菜鸟教程小白    时间: 2022-10-25 09:08
标题: c++ - Eclipse 执行 MI 命令 -target-select remote 失败

尝试在 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.

我的 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

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

知道我做错了什么吗?



Best Answer-推荐答案


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

关于c++ - Eclipse 执行 MI 命令 -target-select remote 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13678923/






欢迎光临 OStack程序员社区-中国程序员成长平台 (http://ostack.cn/) Powered by Discuz! X3.4