* Debugging fortran code with modules
@ 1998-02-02 5:00 Alessandro Castagnini
1998-02-03 5:00 ` Steve Lionel
0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Castagnini @ 1998-02-02 5:00 UTC (permalink / raw)
Hi, people.
I have a quite annoying problem using f90 on Digital Unix V4.0 when I
debug my programs (I use Dec ladebug debugger).
I have written a MODULE which contains the declarations of all the
arrays that I want to allocate dinamically and I USE it where needed. It
seems that the debugger cannot access those arrays: when I try to
examine the values I obtain a message about an undefined symbol. The
same happens with the command "whatis".
I've written a small test program which uses allocatable arrays declared
in the main program, without using modules, and everything works fine
(I've compiled with the -ladebug flag), so I think it's because of the
modules that the debugger has problems.
Does any of you know if there's a way to make the debugger aware of
symbols defined inside modules?
Thanks in advance.
Alessandro
--
====================================
Ing. Alessandro Castagnini
Department of Electrical Engineering
Via all'Opera Pia, 11a
I-16145 Genova, Italy
Phone No. +39-10-3532042
Fax No. +39-10-3532040
====================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Debugging fortran code with modules
1998-02-02 5:00 Debugging fortran code with modules Alessandro Castagnini
@ 1998-02-03 5:00 ` Steve Lionel
0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1998-02-03 5:00 UTC (permalink / raw)
In article <34D5BFD5.6550CC43@die.unige.it>, Alessandro Castagnini
<castagnini@die.unige.it> writes:
|>I have a quite annoying problem using f90 on Digital Unix V4.0 when I
|>debug my programs (I use Dec ladebug debugger).
|>
|>I have written a MODULE which contains the declarations of all the
|>arrays that I want to allocate dinamically and I USE it where needed. It
|>seems that the debugger cannot access those arrays: when I try to
|>examine the values I obtain a message about an undefined symbol. The
|>same happens with the command "whatis".
|>Does any of you know if there's a way to make the debugger aware of
|>symbols defined inside modules?
Add the -ladebug switch to the f90 command. This causes the compiler to
generate the additional information decladebug needs to access allocatable
arrays in modules.
You may send questions on DIGITAL Fortran for UNIX to fortran@digital.com.
--
Steve Lionel mailto:Steve.Lionel@digital.com
Fortran Development http://www.digital.com/info/slionel.html
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DIGITAL Fortran, see http://www.digital.com/fortran
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-02-03 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-02 5:00 Debugging fortran code with modules Alessandro Castagnini
1998-02-03 5:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox