Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Patrick Alken <patrick.alken@colorado.edu>
Cc: gdb@sourceware.org
Subject: Re: fortran arrays in gdb
Date: Mon, 05 Mar 2007 17:09:00 -0000	[thread overview]
Message-ID: <20070305170916.GA29844@caradoc.them.org> (raw)
In-Reply-To: <20070305170109.GA21603@hippogriff.physics.drexel.edu>

On Mon, Mar 05, 2007 at 10:01:10AM -0700, Patrick Alken wrote:
> 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?

No, but it's supposed to be able to figure this out automatically.  I
guess there must be a bug somewhere :-(

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-03-05 17:09 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
2007-03-05 17:09     ` Daniel Jacobowitz [this message]
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=20070305170916.GA29844@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=patrick.alken@colorado.edu \
    /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