eclipse与Intel Fortran调试器 [英] eclipse with Intel Fortran debugger

查看:262
本文介绍了eclipse与Intel Fortran调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是如下:

我想用eclipse使用idb intel调试器,以便能够一步一步地通过我的代码,就像 idb -gui 。我已经试图实现一个解决方案,我发现我用脚本替换直接调用idb -gdb:

I want to use the idb intel debugger with eclipse to be able to go step by step through my code, much like idb -gui does. I already tried to implement a solution i found where i replace the direct call to idb -gdb with a script:

#!/bin/bash 
exec/usr/local/soft/intel/fc/10.0.025/bin/ifort/idb -gdb "$@" 

这实际上是作为启动我的程序,直到它到命令提示符。现在我收到以下错误:

This actually works as it starts my program just until it comes to a command prompt. Now i get the following error:

Target request failed: {R,T}xThread terminated.

这是当我浪费了一整天的时间来解决这个问题,并决定发布。任何人能够通过一些聪明的建议进一步帮助我?你如何将idb整合到eclipse中?

That is when i wasted about a whole day trying to solve this and decided to post on so. Anyone able to help me further with some intelligent advice? how did you integrate idb into eclipse?

欢呼,
David

cheers, David

推荐答案

不是专家,但是如果这有帮助,这个线程提到(即使是FORTRAN 11):

Not a specialist, but in case this helps, this thread mentions (even though it is for FORTRAN 11):


我正在考虑你的问题,我想我没有按照你的意思来解决你的问题陈述。

你在调试器中看到的代码驻留在一个 MODULE 定义文件?如果是这样,我会说这个问题是由于使用gdb作为Fortran调试器的一般限制。如果您使用英特尔调试器,您将可以进入英特尔Fortran生成的代码,该代码包含在 MODULE 中。

I was thinking about your problem some more and I think I was not taking your problem statement as literally as you meant it maybe.
Are you saying the code you cannot see in the debugger resides in a MODULE definition file? If so, I would say the problem is due to general limitations of using gdb as a Fortran debugger. If you use the Intel debugger, you will be able to step into Intel Fortran generated code which is contained in a MODULE.

我看到您正在使用英特尔Fortran的11.0版本。你有几个选择。

I see you are using version 11.0 of Intel Fortran. There are a couple of choices for you.


  • 英特尔Fortran 11.0附带了一个新的独立GUI版本的IDB。如果您不介意在Eclipse中构建,而在另一个工具中进行调试,则可以使用它。假设您初始化了使用英特尔调试器的环境,您将使用 idb 命令调用新的gui版本。

  • 英特尔Fortran 11.0还提供调试器的命令行版本,您可以使用 idbc 命令调用该命令行版本,假设您已经初始化了使用Intel调试器的环境。

  • 您可以尝试的第三种方法是修改Photran中的调试启动配置,以便调用 idbc 而不是 gdb 。这不是英特尔正式支持的东西,但是当我尝试一个类似于我认为你的情况的例子时,它的工作原理是o.k.再次,这不是Intel所支持的,所以如果你在这个配置中遇到其他问题,那就没有帮助。如果它对你来说很好,那么你可以在Eclipse / Photran中完成所有的任务。

    如果你想尝试它,在启动Eclipse之前初始化你的环境以使用英特尔调试器,启动Eclipse,打开您的调试配置并选择调试器选项卡。然后在调试器选项区域中, Main 选项卡,从<$ c中更改 GDB调试器 $ c> gdb to idbc

  • Intel Fortran 11.0 comes with a new standalone GUI version of IDB. You could use it if you don’t mind building in Eclipse, but debugging in another tool. You invoke the new gui version with the "idb" command assuming you initialized your environment for using the Intel debugger.
  • Intel Fortran 11.0 also provides the command line version of the debugger which you can invoke with the "idbc" command, again, assuming you have initialized your environment for using the Intel debugger.
  • A third alternative you could try is to modify your debug launch configuration in Photran so that it invokes idbc instead of gdb. This is not something that is officially supported by Intel, but when I try it with an example similar to what I think your situation is, it works o.k. Again, this is not supported by Intel so if you run into other problems in this configuration, there would be no help. If it works well enough for you though, it let’s you do everything within Eclipse/Photran.
    If you want to try it, initialize your environment to use the Intel debugger before you start Eclipse, start Eclipse, open your debug configuration and choose the debugger tab. Then in the "Debugger Options" area, "Main" tab, change "GDB debugger" from "gdb" to "idbc".






还提到(如果它对你的问题有任何影响):


That thread also mentions (in case it has any influence on your issue):


idb GUI似乎运行一个名为 iidb 的后端,它可以模拟 gdb 以供Eclipse IDE使用。

The idb GUI appears to run a backend called iidb, which emulates gdb well enough for the Eclipse IDE to get by.

iidb 需要加载某些共享库。

我通过添加 /opt/intel/Compiler/11.1/038/idb/lib/intel64 到环境
变量 LD_LIBRARY_PATH 在Eclipse启动之前。

您的路径应符合您的具体 ifort 安装。

iidb needs to load certain shared libraries.
I made this happen by adding /opt/intel/Compiler/11.1/038/idb/lib/intel64 to environment variable LD_LIBRARY_PATH prior to Eclipse startup.
Your path should match your specific ifort installation.

在调试配置中,选择 Debugger ,field GDB调试器,将 gdb 替换为 iidb 。如果要在启动时停止,请尝试将主要替换为 MAIN __

In your debug configuration, tab "Debugger," field "GDB debugger", replace gdb with iidb. If you want it to stop on startup, try replacing main with MAIN__.

这篇关于eclipse与Intel Fortran调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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