From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11134 invoked by alias); 30 Jan 2003 03:12:55 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11127 invoked from network); 30 Jan 2003 03:12:55 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.209.173) by 172.16.49.205 with SMTP; 30 Jan 2003 03:12:55 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 738B14074 for ; Wed, 29 Jan 2003 22:12:41 -0500 (EST) Message-ID: <3E389829.9040104@redhat.com> Date: Thu, 30 Jan 2003 03:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [rfa:doc] Clarify stabs @ Content-Type: multipart/mixed; boundary="------------010203080508090609020908" X-SW-Source: 2003-01/txt/msg00804.txt.bz2 This is a multi-part message in MIME format. --------------010203080508090609020908 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 45 Following up a very old e-mail. Ok? Andrew --------------010203080508090609020908 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1405 2003-01-29 Andrew Cagney * stabs.texinfo (Member Type Descriptor): Clarify description of `@'. Suggested by Ben Hutchings. Index: stabs.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/stabs.texinfo,v retrieving revision 1.8 diff -u -r1.8 stabs.texinfo --- stabs.texinfo 2 Jan 2003 14:36:48 -0000 1.8 +++ stabs.texinfo 30 Jan 2003 03:06:26 -0000 @@ -2724,11 +2724,22 @@ @node Member Type Descriptor @section The @samp{@@} Type Descriptor -The @samp{@@} type descriptor is for a member (class and variable) type. -It is followed by type information for the offset basetype, a comma, and -type information for the type of the field being pointed to. (FIXME: -this is acknowledged to be gibberish. Can anyone say what really goes -here?). +The @samp{@@} type descriptor is used together with the @samp{*} type +descriptor for a pointer-to-non-static-member-data type. It is followed +by type information for the class (or union), a comma, and type +information for the member data. + +The following C++ source: + +@smallexample +typedef int A::*int_in_a; +@end smallexample + +generates the following stab: + +@smallexample +.stabs "int_in_a:t20=*21=@@19,1",128,0,0,0 +@end smallexample Note that there is a conflict between this and type attributes (@pxref{String Field}); both use type descriptor @samp{@@}. --------------010203080508090609020908--