Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse failed to execute MI command -target-select remote

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 ?

like image 604
Shrouk Khan Avatar asked Dec 03 '12 07:12

Shrouk Khan


2 Answers

I am using Eclipse and bellow is how I managed to fix it when it happens.

  1. At the most top right corner of your IDE click on the debug button (debug button) to view the debug mode.
  2. Once in the debug mode, Right click on where project tree is (usually in the left most column) (Project tree)
  3. Select "terminate and remove"
  4. Rebuild your code
like image 172
Kaveh Avatar answered Oct 25 '22 01:10

Kaveh


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.

like image 39
Shrouk Khan Avatar answered Oct 25 '22 02:10

Shrouk Khan