From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16304 invoked by alias); 13 Sep 2010 23:14:36 -0000 Received: (qmail 16291 invoked by uid 22791); 13 Sep 2010 23:14:35 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Sep 2010 23:14:29 +0000 Received: by wwi14 with SMTP id 14so7255517wwi.12 for ; Mon, 13 Sep 2010 16:14:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.188.209 with SMTP id a59mr3180767wen.87.1284419667105; Mon, 13 Sep 2010 16:14:27 -0700 (PDT) Received: by 10.216.236.214 with HTTP; Mon, 13 Sep 2010 16:14:27 -0700 (PDT) In-Reply-To: References: <20100903054655.GA25904@host1.dyn.jankratochvil.net> <89AE14E37D740B4796DC14566DF6325ECB7E034783@SJEXCHCCR02.corp.ad.broadcom.com> Date: Mon, 13 Sep 2010 23:14:00 -0000 Message-ID: Subject: Re: multidimensional fortran arrays From: Mathew Yeates To: Andrew Burgess Cc: Jan Kratochvil , "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2010-09/txt/msg00082.txt.bz2 uh oh. Doesn't seem to work for dimensions greater than 2. -Mathew On Thu, Sep 9, 2010 at 9:36 AM, Mathew Yeates wrote: > Thanks Jan. This appears to work. > > On Tue, Sep 7, 2010 at 3:19 PM, Andrew Burgess wr= ote: >> The attached patch might fix the issue for you. It should apply cleanly = to 7.2 >> >> I'll write a test and submit to the patches list in a couple of days. Le= t me know if you run into any problems. >> >> >> Andrew >> >> >> >>> -----Original Message----- >>> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On >>> Behalf Of Mathew Yeates >>> Sent: 07 September 2010 05:34 >>> To: Jan Kratochvil >>> Cc: gdb@sourceware.org >>> Subject: Re: multidimensional fortran arrays >>> >>> gdb shouldn't claim to support gfortran until this =A0is fixed. >>> Seriously, I cant print the value of a multidimensional =A0array? >>> >>> On Thu, Sep 2, 2010 at 10:46 PM, Jan Kratochvil >>> wrote: >>> > On Thu, 02 Sep 2010 19:29:07 +0200, Mathew Yeates wrote: >>> >> I mentioned this before but got no reply. So I have been getting the >>> >> address of the array and using "x/f". >>> >> But now I am using 4 dimensional arrays and this is getting old. >>> >> >>> >> Anyone have any ideas how to fix this? print myarray(1,2) -> "so >>> such >>> >> vec element" >>> > >>> > For some reason it really does not work even for static arrays. >>> > program a >>> > =A0integer :: v (2, 3, 4) >>> > =A0v (:, :, :) =3D 10 >>> > =A0v (2, 3, 4) =3D 20 >>> > =A0v (2, 3, 4) =3D 20 ! line 5 >>> > end >>> > (gdb) b 5 >>> > (gdb) r >>> > (gdb) p v(2,3,4) >>> > no such vector element >>> > >>> > It works on archer-jankratochvil-vla >>> > (gdb) p v(2,3,4) >>> > $1 =3D 20 >>> > available at >>> > =A0 =A0 =A0 =A0http://sourceware.org/gdb/wiki/ArcherBranchManagement >>> > (or Fedora releases) but the support has some other problems and I >>> should >>> > merge it to FSF GDB soon. >>> > >>> > >>> > Thanks, >>> > Jan >>> > >> >> >