This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to debug fortran program?
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: gdb at sourceware dot org
- Cc: abo <lilyphysik at 163 dot com>
- Date: Thu, 4 Jan 2007 23:05:06 +0100
- Subject: Re: How to debug fortran program?
- References: <459CBA43.10503@163.com>
On Thursday 04 January 2007 09:26, abo wrote:
> Hello members,
> I compile f90 source program by g95,but I can't debug it with gdb.
> Is there anyone who had the same experiences?
Yup.
g95 does not write out useful debug information. So, you can't debug
your program with gdb or with any other symbolic debugger.
Also, even if g95 would write out useful debug information, gdb would
not have support for most Fortran 9x features (e.g. no support for
modules, no support for array expressions, etc.).
Sorry....
Gr.
Steven