I am using Intel Fortran compiler with totalview debugger 8.0.2-0 on Linux 86. My problem is I cant access some variables at some points. To explain the situation I will give an example.
When pause the debugger in program A, I can see value of ierr. But when i step into subroutine B and pause there, I can't see the value of ierr. It shows me <Bad address: 0x00000000> either in stack frame window or the variable display window when it opens when I double click on the variable. Program executes and writes the correct value of ierr. Interesting thing is while it is paused in subroutine B, I can select the calling program A and can see the variable. So it seems like the memory location is not transferred correctly or not transfered at all. Maybe module related?Code:Program A ... Use test ierr=0 Call B(ierr) End program A !------------------------- Module test Contains Subroutine B (ierr) ... ierr = 1 Write(*,*) ierr End Subroutine B End Module test
There are other issues, but it may be the same cause. What can be the problem? Thanks in advance.