This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Status of GDB support for debugging of Fortran programs?
- From: Harald Anlauf <anlauf at gmx dot de>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 04 Sep 2012 21:16:33 +0200
- Subject: Status of GDB support for debugging of Fortran programs?
Hi,
does anybody know whether there has been any progress in GDB
that supports debugging of Fortran programs on Linux/x86?
Are there some secret patches that are needed to get it working?
Trying to debug this simple program under gdb I cannot get any
useful information on the array components of the derived type:
implicit none
type t_a
integer :: n = 0
real, pointer :: p(:) => NULL()
end type t_a
type(t_a) :: x
x% n = 3
allocate (x% p(x% n))
x% p = 1
print *, x% n
print *, x% p
end
It appears that the Intel debugger (idb v12) is able to handle the
debugging information generated by gfortran 4.7.
I tried gdb-7.3 that comes with OpenSuse 12.1, as well as a
self-compiled gdb-7.5.
Harald