fortran debugging question with g77 and gdb
Hello all
I am trying to unravel a brew of ancient Fortran and C code on Linux Mandrake 8.0. I have managed to compile and run the fortran code and even debug it some in gdb, but I cannot see my fortran source in gdb. I have compiled with -g or -ggdb or-g3 and I can see my C source. Is this even possible? Should I give up now and stick to grep and a straight jacket or is it worth pursuing. Indebted in advance Frustrated Fuzzy Fortran Familiar |
I don't know about with that toolchain, but using g95 and current gdb under gentoo it works fine.
Make sure you have added the -g flag to the fortran compilation as well as the C compilation - adding it to CFLAGS won't achieve that, you will need to set FFLAGS as well. You might not have fortran support in your GDB if you have an old version of gdb. |
All times are GMT -5. The time now is 06:32 AM. |