From: Patrick Alken <patrick.alken@colorado.edu>
To: gdb@sourceware.org
Subject: Re: fortran arrays in gdb
Date: Mon, 05 Mar 2007 17:01:00 -0000 [thread overview]
Message-ID: <20070305170109.GA21603@hippogriff.physics.drexel.edu> (raw)
In-Reply-To: <20070305123309.GB14486@caradoc.them.org>
Hi,
I have tried the latest snapshot: GNU gdb 6.6.50.20070305
but it has the same behavior has 6.5:
(gdb) p a
$5 = (PTR TO -> ( real*8 (1,1))) 0xbf85dbd0
Since the matrix "a" has a dynamically specified size:
double precision a(n,n) where n is an input parameter, maybe
gdb cannot determine how big it is, since the "print a" command
is telling me its a 1-by-1 matrix. Is there a way to "tell" gdb
what the leading dimension of the array is, so that a(x,y) will
work correctly?
Patrick Alken
On Mon, Mar 05, 2007 at 07:33:09AM -0500, Daniel Jacobowitz wrote:
> On Sat, Mar 03, 2007 at 03:00:33PM -0700, Patrick Alken wrote:
> > Hello,
> >
> > I am trying to call fortran subroutines from C and then step
> > through the fortran code with gdb. Unfortunately, gdb (version 6.5)
> > cannot properly display the contents of 2D arrays passed to the fortran
> > routine. I have created 2 simple files:
>
> Could you try 6.6, or better yet, a current CVS snapshot? Some work
> was done on Fortran array support.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
next prev parent reply other threads:[~2007-03-05 17:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-03 22:00 Patrick Alken
2007-03-03 22:23 ` Patrick Alken
2007-03-05 12:33 ` Daniel Jacobowitz
2007-03-05 17:01 ` Patrick Alken [this message]
2007-03-05 17:09 ` Daniel Jacobowitz
2007-03-05 18:59 ` Patrick Alken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070305170109.GA21603@hippogriff.physics.drexel.edu \
--to=patrick.alken@colorado.edu \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox