* How to debug fortran program?
@ 2007-01-04 8:26 abo
2007-01-04 14:26 ` Jim Blandy
2007-01-04 22:02 ` Steven Bosscher
0 siblings, 2 replies; 5+ messages in thread
From: abo @ 2007-01-04 8:26 UTC (permalink / raw)
To: gdb
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?
help me !
Best wishes
Abo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug fortran program?
2007-01-04 8:26 How to debug fortran program? abo
@ 2007-01-04 14:26 ` Jim Blandy
2007-01-04 22:02 ` Steven Bosscher
1 sibling, 0 replies; 5+ messages in thread
From: Jim Blandy @ 2007-01-04 14:26 UTC (permalink / raw)
To: abo; +Cc: gdb
abo <lilyphysik@163.com> writes:
> I compile f90 source program by g95,but I can't debug it with gdb.
> Is there anyone who had the same experiences?
> help me !
Hi, Abo. Can you give us more details? GDB has some support for
Fortran.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug fortran program?
2007-01-04 8:26 How to debug fortran program? abo
2007-01-04 14:26 ` Jim Blandy
@ 2007-01-04 22:02 ` Steven Bosscher
2007-01-04 23:15 ` Robert Dewar
1 sibling, 1 reply; 5+ messages in thread
From: Steven Bosscher @ 2007-01-04 22:02 UTC (permalink / raw)
To: gdb; +Cc: abo
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug fortran program?
2007-01-04 22:02 ` Steven Bosscher
@ 2007-01-04 23:15 ` Robert Dewar
2007-01-05 5:10 ` Steven Bosscher
0 siblings, 1 reply; 5+ messages in thread
From: Robert Dewar @ 2007-01-04 23:15 UTC (permalink / raw)
To: Steven Bosscher; +Cc: gdb, abo
Steven Bosscher wrote:
> 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.).
Not so clear, a lot can be done in dwarf-2, of course being able to
type in Fortran expressions would require extra support.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug fortran program?
2007-01-04 23:15 ` Robert Dewar
@ 2007-01-05 5:10 ` Steven Bosscher
0 siblings, 0 replies; 5+ messages in thread
From: Steven Bosscher @ 2007-01-05 5:10 UTC (permalink / raw)
To: Robert Dewar; +Cc: gdb, abo
On 1/5/07, Robert Dewar <dewar@adacore.com> wrote:
> Steven Bosscher wrote:
>
> > 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.).
>
> Not so clear, a lot can be done in dwarf-2, of course being able to
> type in Fortran expressions would require extra support.
Most Fortran 90 features require dwarf-3. You can do almost nothing
with types for Fortran arrays that need array descriptors. For
modules, renaming of imported symbols is also not in dwarf-2 afaik.
But it really doesn't matter if the compiler does not produce this
debug information to begin with.
Gr.
Steven
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-05 5:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 8:26 How to debug fortran program? abo
2007-01-04 14:26 ` Jim Blandy
2007-01-04 22:02 ` Steven Bosscher
2007-01-04 23:15 ` Robert Dewar
2007-01-05 5:10 ` Steven Bosscher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox