Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GDB with ECLIPSE GUI over remote server?

I would love to debug my software with ECLIPSE as front end to GDB. Our build set up as follows.

  • Linux server with code base
  • Windows accessing code base via Samba (Eclipse IDE)
  • Software is built on Linux server with makefiles (No ECLIPSE control here, its more of an editor for now)
  • NFS mount to target (it's embedded SW)
  • remote debugging using command line GDB

I do not have an option to change my build environment, its too much of effort, moreover Cygwin is too slow compared to Linux.

The only way I can access the server is with ssh. The server has only basic X-Window manager, so VNC is not an option.

Is there any way I can make use of ECLIPSE as an IDE rather than as editor ? I am mainly interested in utilizing its remote DEBUGGING feature.


EDIT

ERROR establishing communication

TARGET

#./mipsel-linux-gdbserver-7.1 :1234 hello

HOST

$ gdb hello
(gdb) target remote 10.201.122.177:1234
Remote debugging using 10.201.122.177:1234
warning: while parsing target description (at line 10): Target description speci
fied unknown architecture "mips"
warning: Could not load XML target description; ignoring
Reply contains invalid hex digit 59

I also did try recompiling a gdb server from cygwin sources for my target, but the results were no different. My target architecture is MIPS.


POSSIBLE ANOTHER APPROACH

Is RSE (Remote System Explorer) alternate to what I am trying to achieve ?

like image 916
Kamath Avatar asked Oct 11 '22 04:10

Kamath


1 Answers

Target description specified unknown architecture "mips"

Your target is (obviously) mipsel-linux.

Your GDB is (most likely) native linux-i386 or linux-x86_64. You can see how your GDB was configured with

(gdb) show version
...
This GDB was configured as "x86_64-linux".

In order to debug mipsel-linux target, you need to build a cross-gdb (--host=x86_64-linux --target=mipsel-linux or some such) and then get Eclipse to invoke that GDB instead of the native one.

like image 178
Employed Russian Avatar answered Oct 13 '22 11:10

Employed Russian