Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] How to use Intel idb as debugger

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

Good luck,
Mike

Bill Hilliard wrote:
> It sounds like, with gdb,  you may be seeing the problem 'can't find the source for main()'.  If you set a breakpoint in your Fortran code at a convenient place and click 'Resume', gdb should run to your Fortran breakpoint and stop with your Fortran source open.  The reason you see this behavior (if I am guessing correctly about your situation) is that debug launch configurations are created by default with 'stop at main()' enabled.  With Intel Fortran, the ifort runtime library provides the main() symbol so the debugger is stopping in ifort rtl code which it does not have any source for.  You can just ignore this stop at main() and click resume to continue into your Fortran code, or you can eliminate the stop at main() by disabling it in your debug launch configuration.  But make sure you set a breakpoint in your Fortran code either way so that your program does not just run to completion before you get a chance to debug anything.
> 
> With regards Intel idb debugger, there is no idb integration for Photran.  However, the idb product included in your ifort kit does come with a standalone Eclipse based GUI version of idb.  You can use that if you were particularly interested in using idb for debugging.
> 
> I hope this is helpful to you.
> 
> Olof Liungman wrote:
> > I am trying to get started with Eclipse/Photran as a Fortran IDE under Linux. However, I have not been able to figure out how to tell Eclipse/Photran to use the Intel idb debugger instead of gdb. idb does not appear as a choice in the debugger settings. Can anyone help?
> > 
> > I have Eclipse Ganymede (3.4) with CDT 5.0 and Photran 4.0 (installing Photran 5.0 in Galileo and CDT 6.0 failed as Eclipse claimed that CDT features were missing which were obviously installed...). I have a Kubuntu 9.04-system with the latest Intel Fortran 11 compiler and debugger. Compiling works fine but gdb cannot "read" the source files.


Back to the top