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

idb 10 doesn't display fortran module variables

walter_s_
Beginner
997 Views

Hi

The idb debugger in the last release of ifort for linux (l_fc_p_10.0.023) doesn't display the module variables.

module mod1
integer mod1_var1
.....
end module mod1

subroutine sub1
use mod1, var1=>mod1_var
var1=1
.....
end

(idb) print var1



best regards
walter steff


 

0 Kudos
4 Replies
Steven_L_Intel1
Employee
997 Views
Try:

print mod1::var1
0 Kudos
walter_s_
Beginner
997 Views
Hi Steve, thanks for your replay.

I have tried it but "print mod1::var1" seems not to be a legal statement for idb.

Instead it accepts the following command:

print mod1%%mod1_var1

! mod1_var1 was the name of variable defined inside of mod1

but the result doesn't change:


I would like to say that the printing of the module variables worked fine with IFORT 9.1 and Suse 10.0.
Now I have upgraded to IFORT 10.0 and Suse 10.2 which has a newer glibc (2.5).
I have tried to solve the problem by going back to ifort 9.1 but, probably due to the not supported glibc 2.5, idb 9.1 doesn't read any more the debug symbols.

To complete the info I would like to say also that my code is a mix of fortran and C++ and that the idb behaviour doesn't change by switching the linker between ICPC and g++.


best regards
Walter Steffe




0 Kudos
Steven_L_Intel1
Employee
997 Views
Please report this problem to Intel Premier Support.
0 Kudos
walter_s_
Beginner
997 Views
Ok. I will do it

Walter


0 Kudos
Reply