From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5086 invoked by alias); 3 Sep 2010 05:47:06 -0000 Received: (qmail 5077 invoked by uid 22791); 3 Sep 2010 05:47:05 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Sep 2010 05:47:00 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o835kx11010129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 3 Sep 2010 01:46:59 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o835kukL011116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 3 Sep 2010 01:46:58 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o835ku2E005733; Fri, 3 Sep 2010 07:46:56 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o835ku3X005732; Fri, 3 Sep 2010 07:46:56 +0200 Date: Fri, 03 Sep 2010 05:47:00 -0000 From: Jan Kratochvil To: Mathew Yeates Cc: gdb@sourceware.org Subject: Re: multidimensional fortran arrays Message-ID: <20100903054655.GA25904@host1.dyn.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) 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/msg00006.txt.bz2 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 integer :: v (2, 3, 4) v (:, :, :) = 10 v (2, 3, 4) = 20 v (2, 3, 4) = 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 = 20 available at http://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