From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26465 invoked by alias); 23 Sep 2011 15:32:52 -0000 Received: (qmail 26456 invoked by uid 22791); 23 Sep 2011 15:32:51 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from atlantis.wh2.tu-dresden.de (HELO atlantis.wh2.tu-dresden.de) (141.30.228.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Sep 2011 15:32:37 +0000 Received: from [141.30.68.120] (m120.zih.tu-dresden.de [141.30.68.120]) by atlantis.wh2.tu-dresden.de (Postfix) with ESMTPSA id 46A5983D0A0 for ; Fri, 23 Sep 2011 17:32:36 +0200 (CEST) Message-ID: <4E7CA694.7010701@tu-dresden.de> Date: Fri, 23 Sep 2011 15:32:00 -0000 From: Joachim Protze User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Lightning/1.0b2 Thunderbird/3.1.12 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: cannot print allocatable arrays References: <20110923144610.10149.52279.XPN@L622243018051.user.x-privat.org> In-Reply-To: <20110923144610.10149.52279.XPN@L622243018051.user.x-privat.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2011-09/txt/msg00105.txt.bz2 On 23.09.2011 16:46, Lurkos wrote: > I'm using gdb 7.0.1-debian and gfortran 4.4.5 on Debian squeeze amd64. > > I'm not able to print arrays that are declared as allocatable. > It seems that gdb is not able to detect the correct size of the array > allocated run-time. > Is there a different way to print the values in this case? > > Thank you. For debugging fortran90 code you may want to use a patched version of gdb as recommended in http://sourceware.org/bugzilla/show_bug.cgi?id=9395#c1 - Joachim