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
Not a specialist, but in case this helps, this thread mentions (even though it is for Intel Fortran 11.0):
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 aMODULEdefinition 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 aMODULE.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
 idbcinstead ofgdb. 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):
The
idbGUI appears to run a backend callediidb, which emulatesgdbwell enough for the Eclipse IDE to get by.
iidbneeds to load certain shared libraries.
I made this happen by adding/opt/intel/Compiler/11.1/038/idb/lib/intel64to environment variableLD_LIBRARY_PATHprior to Eclipse startup.
Your path should match your specificifortinstallation.In your debug configuration, tab "
Debugger," field "GDB debugger", replacegdbwithiidb. If you want it to stop on startup, try replacing main withMAIN__.
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 be gdb-oneapi as shown below:
$ module load debugger
$ module list
Currently Loaded Modules:
  1) lmod   2) debugger/2021.5.0
$ which gdb-oneapi 
/opt/intel/oneapi/debugger/2021.5.0/gdb/intel64/bin/gdb-oneapi
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With