问题描述
尝试在 eclipse 中设置远程 gdb 调试.当我尝试调试时,我得到:
trying to setup remote gdb debugging in eclipse. when i try to debug i get:
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 调试器设置正确
my gdb debugger is set up correctly
/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)
(when executing this i can get gdb shell)
知道我做错了什么吗?
推荐答案
如果 gdb 客户端(在 eclipse 中)没??有针对与 gdb 服务器相同的架构进行编译,则会发生这种情况.在eclipse调试中设置正确的gdb解决了这个问题.
this happens if the gdb client ( inside eclipse ) is not compiled for the same architecture as the gdb server. setting the correct gdb in eclipse debugging solved this issue.