开发者

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 DE开发者_C百科BUGGING 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 ?


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.


Use ssh server on remote linux system e.g. dropbear. and then you can use eclipse as frontend for remove debugging over ssh.


You can debug from Eclipse on Windows over gdbserver running on embedded SW. I guess Eclipse should load debugging symbols via Samba and there should be no problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜