Closed
Description
To evalaute the variable in a module, we need to qualify it with the module name.
module helper
integer var1
end module
PROGRAM minimal
use helper
var1 = 2
print *, var1
end
In the above program, when stopped at line print *, var1
, if I need to get the value of var1
, I need to qualify it with the module name. With the right debug info, it should work without need to qualify the name with the module name.
(gdb) p var1
No symbol "var1" in current context.
(gdb) p helper::var1
$1 = 2