From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29680 invoked by alias); 5 Mar 2007 17:09:32 -0000 Received: (qmail 29670 invoked by uid 22791); 5 Mar 2007 17:09:31 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 05 Mar 2007 17:09:21 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HOGgX-0002Fl-Jj; Mon, 05 Mar 2007 12:09:17 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HOGgX-0007m4-1t; Mon, 05 Mar 2007 12:09:17 -0500 Date: Mon, 05 Mar 2007 17:09:00 -0000 From: Daniel Jacobowitz To: Patrick Alken Cc: gdb@sourceware.org Subject: Re: fortran arrays in gdb Message-ID: <20070305170916.GA29844@caradoc.them.org> Mail-Followup-To: Patrick Alken , gdb@sourceware.org References: <20070303220033.GA17346@hippogriff.physics.drexel.edu> <20070305123309.GB14486@caradoc.them.org> <20070305170109.GA21603@hippogriff.physics.drexel.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070305170109.GA21603@hippogriff.physics.drexel.edu> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00060.txt.bz2 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