Cannot debug Fortran 90 programs compiled with gfortran using dbx

Hello,Unfortunately I cannot debug Fortran 90 programscompiled with gfortran using dbx from Sun Studio 11.I used various compiling options : -g, -gstabs, gdwarf2.I am using a machine with Ubuntu linux installed.Plese help.Victor
[277 byte] By [vctrmarian] at [2007-11-26 9:48:15]
# 1

> Hello,

>

> Unfortunately I cannot debug Fortran 90 programs

> compiled with gfortran using dbx from Sun Studio 11.

> I used various compiling options : -g, -gstabs,

> gdwarf2.

> I am using a machine with Ubuntu linux installed.

We don't actually officially support gfortran. But is there

any reason you don't want to give Sun Studio Fortran a try ?

Thanks,

Roman.

romans at 2007-7-7 0:55:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
You can try gdb, but in my experience it can't deal with variables included with a use statement very well. As was already suggested, dbx and Sun f95 work quite nicely for this.
dschanen at 2007-7-7 0:55:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

The problem is that I cant see array variables in gdb.

At the Sun web site in says:

Sun Studio 11 software provides a comprehensive,

productive environment for developing applications

using the GNU Compiler Collection (GCC) for the Linux

operating system.

gfortran is part of gcc, so actually it should

work.

I have a Linux system installed, so The Sun Studio 11

Compilers dont work as I understood.

Only Studio express, but I wouldnt change my stable

gfortran.

Thank you

Victor

vctrmarian at 2007-7-7 0:55:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

We are in the middle of porting all our compilers and debuggers

to work using the newer dwarf format for debugging information.

Once we finish moving Sun Fortran to dwarf it will be much easier

for us to support GNU fortran. At the moment, the Sun debugger

can't deal with GNU fortran. I apologize if the web site is misleading,

we support gcc and g++ in the Sun Studio 11 release.

--chris

ChrisQuenelle at 2007-7-7 0:55:48 > top of Java-index,Development Tools,Solaris and Linux Development Tools...