Could you try using "-ggdb" instead? J.
On Sun, 2010-05-23 at 16:09 -0700, Mannucci, Anthony J (335G) wrote: > I have installed gdb and fortran compiler g95 using macports. The debugger > does not function with the fortran compiler. It does function with gcc > compiling c programs. > > Nor does the standard gdb that ships with Apple developer tools work. The > Apple gdb cannot set breakpoints in the fortran code. I have tried both the > gfortran and g95 (Macports) compilers, and neither works with gdb. > > This is OS X leopard 10.5.x. > > Compiling as follows: > g95 -g -c test4.f > g95 -g test4.o -o test4.e > > Macintosh-10:382:tests $ which gdb > /opt/local/bin/gdb > > Invoking gdb on the file test4.e yields the following error message. > > Macintosh-10:383:tests $ gdb test4.e > GNU gdb (GDB) 7.1 > Copyright (C) 2010 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 "i386-apple-darwin9.8.0". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from > /Users/mannucci/timegcm/tests/test4.e...machoread.c:169: internal-error: > macho_symtab_read: Assertion `oso_file != NULL' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > > ================================ > This is the error I received trying to build gdb on my own. Debugging > fortran code on Darwin has proved to be a challenge. > > -Tony >
signature.asc
Description: This is a digitally signed message part
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
