From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23079 invoked by alias); 22 Apr 2008 05:16:12 -0000 Received: (qmail 23071 invoked by uid 22791); 22 Apr 2008 05:16:12 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate8.de.ibm.com (HELO mtagate8.de.ibm.com) (195.212.29.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Apr 2008 05:15:49 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate8.de.ibm.com (8.13.8/8.13.8) with ESMTP id m3M5FkQA246566 for ; Tue, 22 Apr 2008 05:15:46 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m3M5Fksp3436604 for ; Tue, 22 Apr 2008 07:15:46 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m3M5FjJX024273 for ; Tue, 22 Apr 2008 07:15:45 +0200 Received: from bbkeks.de.ibm.com (dyn-9-152-248-39.boeblingen.de.ibm.com [9.152.248.39]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m3M5FePt024240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Apr 2008 07:15:45 +0200 Message-ID: <480D747C.6040609@de.ibm.com> Date: Tue, 22 Apr 2008 09:40:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Ulrich Weigand , Daniel Jacobowitz CC: GDB Patches , Eli Zaretskii Subject: Re: [patch]: Fix access to SPU registers for fortran References: <20080421193652.GA23498@caradoc.them.org> <200804212000.m3LK0gFL008220@d12av02.megacenter.de.ibm.com> <20080421202318.GB26164@caradoc.them.org> In-Reply-To: <20080421202318.GB26164@caradoc.them.org> Content-Type: multipart/mixed; boundary="------------040503090301080100080707" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00463.txt.bz2 This is a multi-part message in MIME format. --------------040503090301080100080707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1432 Hi, Daniel Jacobowitz schrieb: > On Mon, Apr 21, 2008 at 10:00:42PM +0200, Ulrich Weigand wrote: >> Daniel Jacobowitz wrote: >> >>> Not without documentation, please. Syntax that doesn't come from >>> Fortran (as far as I know) and isn't in the manual might as well not >>> be there :-) >> Hmmm, most of the output changes in Markus' patch actually bring the >> output in line with correct Fortran syntax in the first place ;-) >> >> The one addition is the representation of "union" types in the output; >> this can never happen in regular Fortran, but can happen if you access >> registers that use a gdbarch-defined union type. This extension is >> simply the "C_Union" marker; note that as far as the *parser* is >> concerned, there is no syntax extension. >> >> But I guess you're right that this extension should be documented. >> I assume the right place would be somewhere in section 12.4.3 Fortran? > > I see. I didn't realize we already had the % operator that did the > necessary operation - I must have not found it when this was last > discussed. > > Maybe we could mention it in the Operators bit of the Fortran > documentation, and there add that GDB allows it on unions? > thanks for your comments. I added some lines to the documentation. Is this ok ? ChangeLog: * gdb.texinfo (Fortran Operators): Describe '%' operator. -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com --------------040503090301080100080707 Content-Type: text/plain; name="diff-spu-fortran-ptype-doc" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-spu-fortran-ptype-doc" Content-length: 631 diff -urpN src/gdb/doc/gdb.texinfo dev/gdb/doc/gdb.texinfo --- src/gdb/doc/gdb.texinfo 2008-04-21 06:23:26.000000000 +0200 +++ dev/gdb/doc/gdb.texinfo 2008-04-22 07:10:59.000000000 +0200 @@ -9903,6 +9903,12 @@ of the second one. @item : The range operator. Normally used in the form of array(low:high) to represent a section of array. + +@item % +The access component operator. Normally used to access elements in derived +types. Also suitable for unions. As unions aren't part of regular fortran +this can only happen when accessing a register that uses a gdbarch-defined +union type. @end table @node Fortran Defaults --------------040503090301080100080707--