From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4479 invoked by alias); 9 Sep 2010 16:37:31 -0000 Received: (qmail 3892 invoked by uid 22791); 9 Sep 2010 16:37:25 -0000 X-SWARE-Spam-Status: No, hits=-1.8 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-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Sep 2010 16:36:44 +0000 Received: by qwf7 with SMTP id 7so77118qwf.0 for ; Thu, 09 Sep 2010 09:36:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.29.3 with SMTP id o3mr581097qac.215.1284050197497; Thu, 09 Sep 2010 09:36:37 -0700 (PDT) Received: by 10.224.67.209 with HTTP; Thu, 9 Sep 2010 09:36:37 -0700 (PDT) In-Reply-To: <89AE14E37D740B4796DC14566DF6325ECB7E034783@SJEXCHCCR02.corp.ad.broadcom.com> References: <20100903054655.GA25904@host1.dyn.jankratochvil.net> <89AE14E37D740B4796DC14566DF6325ECB7E034783@SJEXCHCCR02.corp.ad.broadcom.com> Date: Thu, 09 Sep 2010 16:37: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/msg00060.txt.bz2 Thanks Jan. This appears to work. On Tue, Sep 7, 2010 at 3:19 PM, Andrew Burgess wrot= e: > The attached patch might fix the issue for you. It should apply cleanly t= o 7.2 > > I'll write a test and submit to the patches list in a couple of days. Let= 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 >> > > >