Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

How to make every line in source file get a symbol line information in object file by ifort compiler ?

cassielinux
Beginner
1,083 Views
Hi,
I use Intel debugger (IDB) GUI interface to debug my executable file, myExecutable.x and all source codes are written in fortrain90 and my compiler is ifort. According to the IDB GUI user manual, source lines with symbol line information are marked with small blue dots. I can set breakpoints by double clicking the blue dots. However, I notice not every line has blue dots which implays not every line has a symbol line information.

May I know if there is some compiler flag setting or any way to make this happen ? I wonder if it is due to insurfficient debug information level setting. However, I checked my makefile and the compilation flag has been set as "-debug all" already.

Thank you very much,

0 Kudos
1 Solution
TimP
Honored Contributor III
1,083 Views
When you set ifort -g (implying -O0), or equivalent options, you can expect symbol information on all executable statements. You can't get symbol information for specification statements with compiled code; those are translated at compile time and there is nothing to execute at run time.

View solution in original post

0 Kudos
1 Reply
TimP
Honored Contributor III
1,084 Views
When you set ifort -g (implying -O0), or equivalent options, you can expect symbol information on all executable statements. You can't get symbol information for specification statements with compiled code; those are translated at compile time and there is nothing to execute at run time.
0 Kudos
Reply