From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29952 invoked by alias); 22 Nov 2005 17:07:05 -0000 Received: (qmail 29758 invoked by uid 22791); 22 Nov 2005 17:07:04 -0000 X-Spam-Check-By: sourceware.org Received: from ausmtp01.au.ibm.com (HELO ausmtp01.au.ibm.com) (202.81.18.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Nov 2005 17:07:03 +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 jAMH3KKP413782 for ; Wed, 23 Nov 2005 04:10:12 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id jAM7KVNQ246540 for ; Tue, 22 Nov 2005 18:20:31 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11/8.13.3) with ESMTP id jAM7HS3Y027308 for ; Tue, 22 Nov 2005 18:17:28 +1100 Received: from [9.181.133.252] ([9.181.133.252]) by d23av02.au.ibm.com (8.12.11/8.12.11) with ESMTP id jAM7HQoY027164; Tue, 22 Nov 2005 18:17:27 +1100 Date: Tue, 22 Nov 2005 19:21:00 -0000 From: Wu Zhou To: Eli Zaretskii cc: gdb-patches@sources.redhat.com, Thomas.Koenig@online.de Subject: Re: [RFC]: Patch to support Fortran derived type - Revised In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00413.txt.bz2 Hi Eli, On Wed, 16 Nov 2005, Eli Zaretskii wrote: > > Date: Wed, 16 Nov 2005 15:20:18 +0800 (CST) > > From: Wu Zhou > > cc: Thomas.Koenig@online.de > > > > I revised the patch to add derived type support. Now it can print > > the nested type such like this: > > > > Type foo > > int4 :: a > > Type bar > > real :: b > > End Type bar :: x > > End Type foo > > > > It could also handle the member access like q%x%b. > > Thanks. > > > Any more place is needed to be improved, please let me know. > > How about mentioning this in the manual? It would be good to document > how these values and types are printed, in case a user is not fluent > with these f9x features. > Thanks for your comments. Yes. I am thinking of adding these to gdb manual. But I am not sure how to organize them. As you know, we already have three subsection: Fortran operators, Fortran defaults and special Fortran command. Which section should this kind of text gets into? Maybe special Fortran commands? But They are in fact common GDB command, only with somewhat different output format. Maybe it make sense to add another new section? What do you think? However I did added a few words in the Fortran operators section. Here is the patch: Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.296 diff -u -p -r1.296 gdb.texinfo --- gdb.texinfo 20 Nov 2005 06:12:59 -0000 1.296 +++ gdb.texinfo 22 Nov 2005 07:05:01 -0000 @@ -9159,6 +9159,10 @@ of the second one. @item : The range operator. Normally used in the form of array(low:high) to represent a section of array. + +@item % +Fortran 90 and afterwards use this to access the members of derived +type, which is also introduced after the Fortran 90. @end table @node Fortran Defaults Regards - Wu Zhou