使用Eclipse CDT进行远程调试 [英] Remote debugging with Eclipse CDT

查看:254
本文介绍了使用Eclipse CDT进行远程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Windows上使用Eclipse CDT 5 C ++ IDE在远程AIX主机上开发C ++应用程序。

We're using the Eclipse CDT 5 C++ IDE on Windows to develop a C++ application on a remote AIX host.

Eclipse CDT能够使用gdbserver执行远程调试。不幸的是,AIX上不支持gdbserver。

Eclipse CDT has the ability to perform remote debugging using gdbserver. Unfortunately, gdbserver is not supported on AIX.

有没有人熟悉使用Eclipse CDT而不使用gdbserver远程调试的方法?也许使用SSH shell连接到gdb?

Is anyone familiar with a way to debug remotely using Eclipse CDT without gdbserver? Perhaps using an SSH shell connection to gdb?

推荐答案

最后我得到gdb现在远程运行。在任务栏上的Bug符号我采取了Debug Configurations - GDB硬件调试。

finally I got gdb run remotly anyhow now. At the Bug-symbol on the taskbar I took Debug Configurations - GDB Hardware Debugging.

在主C / C ++应用程序中我设置Samba共享的可执行文件的完整路径( X:\abin\vlmi9506 )。我还在项目中的 X:\abin 上设置了一个链接文件夹。然后我在GDB安装程序中修改了我的批处理脚本。它不是直接调用gdb在plink-session,而是一个unix-shell脚本,它打开gdb。通过这个我有可能设置一些unix环境变量的程序,然后进行调试。我批次中的调用:

In Main C/C++ Applications I set the full path on the Samba share of the executable (X:\abin\vlmi9506). I also set a linked folder on X:\abin in the project. Then I modified my batch-script in GDB Setup. It's not directly calling gdb in the plink-session but a unix-shell-script, which opens gdb. By this I have the possibility to set some unix environment-variables for the program before doing debug. The call in my batch:

plink.exe prevoax1 -l suttera -pw XXXXX -i /proj/user/dev/suttera/vl/9506/test/vlmi9506ddd.run 20155 dev o m

在unix脚本中,我启动了gdb命令行参数从eclipse,我发现在我的前tryals。 shell命令中的调用如下所示:

In the unix script I started gdb with the command line params from eclipse, that I found in my former tryals. The call in the shell command looks like this:

gdb -nw -i mi -cd=$LVarPathExec $LVarPathExec/vlmi9506

然后,IBM只为AIX提供gdb 6.0。我在 http://www.perzl.org/aix/index上找到了版本6.8。 php?n = Main.Gdb 。我们的管理员已安装它。

Then IBM just gives gdb 6.0 for AIX. I found version 6.8 in the net at http://www.perzl.org/aix/index.php?n=Main.Gdb. Our Admin installed it.

我现在可以浏览程序并观看变量。我甚至可以直接在控制台视图中编写gdb命令。 yabadabadooooooo

I can now step through the program and watch variables. I even can write gdb-commands directly in the console-view. yabadabadooooooo

希望对其他人也有帮助。不能告诉,什么是真正的赢家行动。
但是每个答案都给出了更多的新问题。

Hope that helps to others as well. Can not tell, what was really the winner-action. But each answer gives more new questions. Now I got 3 of them.


  1. 当我启动调试配置时,我必须点击工具栏中的重新启动才能真正在主程序。是否可以直接在main中重新启动?

  2. 在AIX上,我们的程序首先针对嵌入式sql进行了预处理。预处理的c源放在另一个目录中。当我双击该行设置一个断点,我得到警告未解决的断点,在gdb控制台我看到,中断被设置为预处理的源是错误的。是否可以在正确的源上设置断点?

  3. 我们在AIX上使用CICS。使用xldb-Debugger和CICS的CDCN命令,我们管理调试开始,当我们进入我们的程序。是否可以使用gdb-eclipse远程获取(在plink中)?

这篇关于使用Eclipse CDT进行远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆