Re: What dubugger is used on Linux?
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: What dubugger is used on Linux?         

Group: comp.lang.fortran · Group Profile
Author: Carlie J. Coats
Date: Mar 13, 2008 04:26

FX wrote:
>> Is gfortran only a complier?
>
> gfortran is the name of the GNU Fortran compiler [1], which is part of
> the GNU Compiler Collection (GCC). [2] Like any other Fortran compiler I
> know, it includes the compiler itself and a runtime library.
>
>> I hearted that the gdb can only support F77 standard(???).
>>
>> So, what dubugger is usually used when using gfortran on Linux?
>
> The usual debugger is gdb, the GNU debugger. [3] Fortran support in gdb
> is not perfect, and support for some Fortran 90 (and later) features is
> lacking more that Fortran 77 support, but it can be used to debug any
> Fortran code.
>
> There is no formal link between gfortran and gdb: gdb can be used to
> debug code emitted by any compiler, as long as they follow one of the
> debugging standards it supports (DWARF, stabs, VMS...).
>
>
> [1] http://gcc.gnu.org/wiki/GFortran
> [2] http://gcc.gnu.org/
> [3] http://sourceware.org/gdb/

And then "ddd" is a fairly-nice GUI wrapper around debuggers (including
"gdb" (the default) and other debuggers like Intel's "idb" (which can be
set as command-line options)). See http://www.gnu.org/software/ddd/

In principle the KDE project's "kdbg" could also be used, but I have
persistently had trouble getting it to work with Fortran executables;
I'm not sure what's going on there ;-(

--

Carlie J. Coats, Jr.
Baron Advanced Meteorological Systems, LLC.
"My opinions are my own, and I've got *lots* of them!"
no comments
diggit! del.icio.us! reddit!