gdb and Fortran90 arrays
Parker James E Contr AFRL/HEDR
James.Parker.ctr@brooks.af.mil
Fri Jul 1 21:29:00 GMT 2005
Yes,
If you mean attempt to
(gdb) set language fortran
gdb assumes you mean fortran77, and then complains that the array
definitions are invalid -- doesn't like definitions that include Fortran90
constructs like intent(in)
But if you mean downloading the most current version of gdb from CVS, that I
haven't tried. Currently, I'm using version 6.1 dated 20040607, I didn't
see that 6.2 or 6.3 improved the Fortran90 support. Do you know of a fix
that was implemented?
Jim Parker
Research Physicist
General Dynamics
8355 Hawks Road
Building 1168
Brooks City-Base
San Antonio TX 78235
210 536 4083
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
Sent: Friday, July 01, 2005 4:11 PM
To: Parker James E Contr AFRL/HEDR
Cc: 'gdb@sources.redhat.com'
Subject: Re: gdb and Fortran90 arrays
On Fri, Jul 01, 2005 at 04:09:04PM -0500, Parker James E Contr AFRL/HEDR
wrote:
> I was wondering if anyone could help me decipher the output from gdb
> when debugging Fortran90 code. Since gdb doesn't currently support
> Fortran90, it defaults to a language format called "minimal", which is
> fine for most uses, but for arrays the output is cryptic for me.
Have you tried using CVS, and explicitly setting the language to fortran?
> And you get a list that contains an offset, ecode, base and info. Can
> anyone tell me what these things are? Ecode seems to represent the
> size of each element in the array, but that's just a guess. The rest
> is some sort of memory pointer, but I can't decipher it.
Probably depends on your compiler; you didn't say which? They may be able
to tell you more.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb
mailing list