Eclipse failed to execute MI command -target-select remote

c++, eclipse, gdb, gdbserver, remote-debugging

Solution

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.

Problem

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. ``` 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 ``` (when executing this I can get gdb shell) Any idea what I am doing wrong ?

Original source