Gdb and g95
Jean-Francois Gobin
jf at gobinjf.be
Sun May 23 16:47:50 PDT 2010
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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100523/d090972e/attachment.bin>
More information about the macports-users
mailing list