pgdbg doesn't load program

When I try to debug my Fortran 90 program (which was compiled with -g) with pgdbg I get this message:

NOTE: Can’t find main function compiled -g

and the program doesn’t load.

Could this be a problem of the compilation?

regards,
Thomas

Hi Thomas,

Are there any other error messages? Please try with the flag “-text” (no gui) since it might give us more information.

Thanks,
Mat

Hi Mat,

starting pgdbg with -text gives the following message:

Loaded: /home/thomas/programs/kLMC/Code_test_pgi/kLMCdb.exe
ERROR: No target selected.
NOTE: Can’t find main function compiled -g

regards,
Thomas

Hi Thomas,

The problem is that PGDBG is unable to load the executable for some reason. Please make sure the execuable exists and that it’s compiled for the same target (32 or 64-bit) as debugger. For example, if kLMCdb.exe is a 32-bit application, then eiter set your PATH to your PGI 32-bit installation or add “-tp k8-32” to the PGDBG command line to envoke the 32-bit debugger.

  • Mat