From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5272 invoked by alias); 7 Sep 2010 04:34:39 -0000 Received: (qmail 5059 invoked by uid 22791); 7 Sep 2010 04:34:38 -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-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Sep 2010 04:34:23 +0000 Received: by wyb36 with SMTP id 36so6513443wyb.0 for ; Mon, 06 Sep 2010 21:34:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.179.137 with SMTP id h9mr3055755wem.39.1283834061603; Mon, 06 Sep 2010 21:34:21 -0700 (PDT) Received: by 10.216.171.75 with HTTP; Mon, 6 Sep 2010 21:34:21 -0700 (PDT) In-Reply-To: <20100903054655.GA25904@host1.dyn.jankratochvil.net> References: <20100903054655.GA25904@host1.dyn.jankratochvil.net> Date: Tue, 07 Sep 2010 04:34:00 -0000 Message-ID: Subject: Re: multidimensional fortran arrays From: Mathew Yeates To: Jan Kratochvil Cc: 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/msg00044.txt.bz2 gdb shouldn't claim to support gfortran until this is fixed. Seriously, I cant print the value of a multidimensional array? 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 >