GDB 与 ECLIPSE GUI 通过远程服务器?
我很乐意使用 ECLIPSE 作为 GDB 的前端来调试我的软件。我们的构建设置如下。
- 具有代码库的 Linux 服务器
- Windows 通过 Samba (Eclipse IDE) 访问代码库
- 软件是使用 makefile 在 Linux 服务器上构建的(无 ECLIPSE 控制) 在这里,它现在更像是一个编辑器)
- NFS 安装到目标(它是嵌入式软件)
- 使用命令行 GDB 进行远程调试
我没有选项来更改我的构建环境,这太费力了,而且 Cygwin 与Linux。
我访问服务器的唯一方法是使用 ssh。服务器只有基本的 X-Window 管理器,因此 VNC 不是一个选项。
有什么方法可以将 ECLIPSE 用作 IDE 而不是编辑器?我主要对利用其远程调试功能感兴趣。
编辑
错误建立通信
目标
#./mipsel-linux-gdbserver-7.1 :1234 hello
主机
$ 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
我也尝试从 cygwin 源代码为我的目标重新编译 gdb 服务器,但结果没有什么不同。我的目标架构是 MIPS。
可能的另一种方法
是 RSE (远程系统资源管理器)替代我想要的方法达到 ?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的目标是(显然)mipsel-linux。
您的 GDB(很可能)是本机 linux-i386 或 linux-x86_64。你可以看到你的GDB是如何配置的
为了调试mipsel-linux目标,你需要构建一个跨gdb(
--host=x86_64-linux --target=mipsel-linux
或一些这样),然后让 Eclipse 调用该 GDB 而不是本机 GDB。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
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.在远程 Linux 系统上使用 ssh 服务器,例如 dropbear。然后您可以使用 eclipse 作为前端来删除通过 ssh 的调试。
Use ssh server on remote linux system e.g. dropbear. and then you can use eclipse as frontend for remove debugging over ssh.
您可以通过在嵌入式软件上运行的 gdbserver 从 Windows 上的 Eclipse 进行调试。我猜Eclipse应该通过Samba加载调试符号,应该没有问题。
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.