带有 Intel Fortran 调试器的 eclipse
我的问题如下:
我想将 idb intel 调试器与 eclipse 一起使用,以便能够逐步执行我的代码,就像 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中的?
干杯, 大卫
My problem is the following:
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.
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?
cheers,
David
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不是专家,但如果这有帮助,该线程提到(即使它适用于 Intel Fortran 11.0):
该帖子还提到了(如果它对您的问题有任何影响) ):
Not a specialist, but in case this helps, this thread mentions (even though it is for Intel Fortran 11.0):
That thread also mentions (in case it has any influence on your issue):
自上次回答这个问题以来已经过去了九年。目前,英特尔已经发布了oneAPI工具包作为下一代软件开发工具,继并取代了英特尔Parallel Studio XE工具包。
在这种情况下,
调试器
应该是gdb-oneapi
,如下所示:Nine years have passed since the most recent answer to this question. Currently, Intel has released oneAPI Toolkits as the next-generation software development tools, following and replacing the Intel Parallel Studio XE toolkits.
In this case, the
Debugger
should begdb-oneapi
as shown below:自提出问题以来已经过去了 3 年,但此解决方法适用于任何遇到 eclipse 和 idb 问题的人,尤其是在 OS X 上。
在
处将
选项卡在 Linux 上运行良好。gdb
替换为idbc
Eclipse 中的 >Debugger如果您使用的是 OS X 10.7+,Eclipse 中不支持 Intel Fortran 编译器,请创建一个 makefile 项目,使用自定义 makefile 创建目标,使用带有标志
的
(OS X 10.7+ 需要这些标志),用ifort
-g -fpic -Wl,-no_pieidb
替换gdb
,它最终会起作用。3 years have passed since the question was asked but this workaround will work for anyone having trouble with eclipse and idb, especially on OS X.
Replacing
gdb
withidbc
at theDebugger
tab in eclipse works fine on Linux.If you are on OS X 10.7+, where there is no support for the Intel Fortran compiler in eclipse, create a makefile project, create a target with a custom makefile, use
ifort
with the flags-g -fpic -Wl,-no_pie
(these flags are needed for OS X 10.7+), replacegdb
withidb
and it will eventually work.