gpt4 book ai didi

使用英特尔 Fortran 调试器进行 eclipse

转载 作者:行者123 更新时间:2023-12-04 15:27:17 24 4
gpt4 key购买 nike

我的问题如下:

我想在 Eclipse 中使用 idb intel 调试器,以便能够逐步完成我的代码,很像 idb -gui做。我已经尝试实现一个解决方案,我发现我用脚本替换了对 idb -gdb 的直接调用:

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

这实际上在它启动我的程序时起作用,直到它出现命令提示符。现在我收到以下错误:
Target request failed: {R,T}xThread terminated.

这时候,我浪费了大约一整天试图解决这个问题,并决定张贴在左右。任何人都能够通过一些明智的建议进一步帮助我?你是如何将idb集成到eclipse中的?

干杯,
大卫

最佳答案

不是专家,但万一这有帮助,该线程提到(即使它适用于 FORTRAN 11):

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.

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

  • 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还提到(以防它对您的问题有任何影响):

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

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.

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__.

关于使用英特尔 Fortran 调试器进行 eclipse ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4315012/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com