Hello,I am working on a very large body of code (~80k lines) and I would like to be able to debug using GDB. I have been working for a few days to be able to compile this fortran source in a way that would let me use GDB, but have been unsuccessful so far.I have been using the -g -debug -debug-parameters all options in my code.When I open the executable with GDB it saysGNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5_7.1)Copyright (C) 2009 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. Type "show copying"and "show warranty" for details.This GDB was configured as "x86_64-redhat-linux-gnu".For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>...Reading symbols from EXECUTABLE...(no debugging symbols found)...done.(I left the version info there on purpose). I can set breakpoints and the work. It will list source code, but when I attempt to print a variable it fails. I am not sure why this is, but this is important functionality.Is there a flag or something I am not setting? I have even tried using the -dwarf-2/3 flags.Thanks in advance,Larry
For more complete information about compiler optimizations, see our Optimization Notice.