From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20325 invoked by alias); 3 Aug 2005 02:44:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20306 invoked by uid 22791); 3 Aug 2005 02:44:25 -0000 Received: from ausmtp01.au.ibm.com (HELO ausmtp01.au.ibm.com) (202.81.18.186) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 03 Aug 2005 02:44:25 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp01.au.ibm.com (8.12.10/8.12.10) with ESMTP id j732kon0226840 for ; Wed, 3 Aug 2005 12:46:54 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0208e0.au.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j732l4gF170268 for ; Wed, 3 Aug 2005 12:47:05 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11/8.13.3) with ESMTP id j732i7Sg007418 for ; Wed, 3 Aug 2005 12:44:08 +1000 Received: from [9.181.134.203] ([9.181.134.203]) by d23av04.au.ibm.com (8.12.11/8.12.11) with ESMTP id j732i0Ra007227; Wed, 3 Aug 2005 12:44:03 +1000 Date: Wed, 03 Aug 2005 02:44:00 -0000 From: Wu Zhou X-X-Sender: woodzltc@localhost.localdomain To: Jack Howarth cc: gdb@sources.redhat.com, fortran@gcc.gnu.org Subject: Re: fortran character strings in common blocks In-Reply-To: <20050802161249.EBE801DC06D@bromo.msbb.uc.edu> Message-ID: References: <20050802161249.EBE801DC06D@bromo.msbb.uc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-08/txt/msg00014.txt.bz2 On Tue, 2 Aug 2005, Jack Howarth wrote: > Is gdb supposed to be able to print the values of character strings > that belong to COMMON blocks? I find that a character string declared as... > > PARAMETER (COMMAX=132) > CHARACTER*(COMMAX) COMLYN > > COMMON /CCOMND/ COMLYN > > that I get an error... > > (gdb) print COMLYN > No symbol "COMLYN" in current context. > > even though I can assign this character string to > a locally declared character string (not in a > COMMON block) and then print this string with gdb. > Thanks in advance for any clarifications on this issue. > Jack > ps This is with gfortran from the current gcc 4.0 branch. > The reason is that gfortran treats common blocks as structure. So gdb can't handle it at this time. gdb expects it treated as DW_TAG_common_block. I ever opened a bug on this at GCC bugzilla: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23057 Hope that gfortran community could handle this in a near future. Regards - Wu Zhou