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

Equivalent of `module`variable command if using idb -gdb

nicolas_rousselon
735 Views
Hello,

When using idb, module's variables are accessed using `module`variable. What about when using idb -gdb?

Regards,

Nicolas
0 Kudos
1 Reply
Intel_C_Intel
Employee
735 Views

Hi,

The Intel Debugger release notes state:

Fortran modules

A globally defined Fortran module should be rescoped with a double percent (%%) when referred to. For example, to set a breakpoint in the subroutine bar contained in a globally defined module foo, do

(idb) stop in foo%%bar

Please refer to the following section in the manual for the rescoping syntax:

Looking Around the Code, the Data and Other Process Information > Looking at the Data > The print Command

That syntax works in both DBX and GDB command modes.

Please let me know if there's something more you need in this regard.

Thanks,

-- G

0 Kudos
Reply