Relative newbie here, but I get an interesting warning when trying to debug my code with pgdbg.
There are many files in the program, but when I switch to the file I am interested in debugging within pgdbg, it says:
WARNING: invalid symbol information detected for pointer type
multiple times. From there, all the line numbers are greyed out, and I get errors when trying to set breakpoints
ERROR: Cannot set breakpoint at line:…
The other files in the code seem to want to debug ok, and the code itself runs perfectly well, even with all the debugging flags. The file in question contains a module, though even the routines/functions outside this module cannot have breakpoints set. I think the problem may be to do with the following construct in the module which it is having difficulty with:
TYPE ExcitGenerator INTEGER , ALLOCATABLE :: ExcitData(:) INTEGER :: nExcitMemLen LOGICAL :: ExitGenForDet=.false. END TYPE TYPE(ExcitGenerator) , ALLOCATABLE , TARGET :: WalkVecExcits(:),WalkVec2Excits(:) TYPE(ExcitGenerator) , POINTER :: CurrentExcits(:), NewExcits(:)
In the program, I allocate WalkVec(2)Excits, which are pointed to by CurrentExcits/NewExcits. I then allocate/deallocate the individual ExcitData components as I need them. This works fine when running the code, and may not be the cause of pgdbg’s problem.
I compile the file with pgf90 -c -g -r8 pc=64 -Msignextend -Minform=warn -Msecond_underscore -Mfree FciMC.f90
Hope you can help.