Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

idb, ifort - a coller coaster

oh_moose
Beginner
902 Views
Many of the CALL statements in my software are longer than one line and include numerous arguments. Whenever I debug these routines, idb goes up and down several times over every single line until a "step" or "next" finally makes it to the next statement. Is there a way to fix this or do I need a paper bag?


0 Kudos
4 Replies
jimdempseyatthecove
Honored Contributor III
902 Views

oh_moose,

First let me prefix this by two things a) I am not from Intel, b) I am a Windows user

Yes, I find this annoying too. Under Wiindows using WinDbg from the IDE (and I see no reason the Intel Debugger under Linux won't have this feature too), there is an option to "Run to cursor" as well as "Step into". If you want to bypass the CALL then place the cursor past the CALL and use "Run to cursor" (like placing a break point there, run, remove break point in one operation). If you want go into the called routine then use "Step Into".

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
902 Views
I think there is an idb option, something like "set step semantic", that will change the behavior. However, some people like the behavior you describe as it shows what part of the statement is being executed.
0 Kudos
oh_moose
Beginner
902 Views
Hi Steve, Happy New Year!

Unfortunately idb does not understand "set step semantic" (neither in dbx nor gdb more). This is however a valid VMS debugger command. :-) Not that it fixes the same problem on VMS. I presume the Fortran compiler for OpenVMS/Alpha and for Linux share some common code. The roller coaster feature is one of the most annoying one (and users of Fortran for OpenVMS/Alpha have to live with it since 15 years). It costs me time and nerves, and it is completely useless.

0 Kudos
Steven_L_Intel1
Employee
902 Views
The issue is how to ascribe line numbers to instructions. The VMS debug language is much more expressive than that used on Linux or Windows. I suggest submitting a feature request to Intel Premier Support asking for an option to use the line number on which a statement begins for all code used in that statement.
0 Kudos
Reply