From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7453 invoked by alias); 2 Aug 2006 03:26:59 -0000 Received: (qmail 7441 invoked by uid 22791); 2 Aug 2006 03:26:58 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 02 Aug 2006 03:26:57 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G87Nn-0000WH-Tg for gdb-patches@sourceware.org; Tue, 01 Aug 2006 23:26:56 -0400 Date: Wed, 02 Aug 2006 03:26:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: [rfa] Stabs documentation tweak for pointers to members Message-ID: <20060802032655.GA1847@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 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: 2006-08/txt/msg00019.txt.bz2 When working on pointers to members I encountered only one place in GDB that seemed to need an actual "member" type, instead of just "pointer to member" (which is not really a pointer at all). That was in the stabs reader. The documentation says that stabs has a "member" construct, and represents pointers to members as pointers to that construct. The reader code matches this. But if this was ever the case for GCC, it hasn't been for a while. Now the @ descriptor means pointer to member. This patch corrects the manual; the final patch will correct the stabs reader. OK to commit? -- Daniel Jacobowitz CodeSourcery 2006-08-01 Daniel Jacobowitz * stabs.texinfo (Member Type Descriptor): Correct example for pointer to member types. Index: src/gdb/doc/stabs.texinfo =================================================================== --- src.orig/gdb/doc/stabs.texinfo 2006-08-01 23:13:43.000000000 -0400 +++ src/gdb/doc/stabs.texinfo 2006-08-01 23:17:44.000000000 -0400 @@ -2742,8 +2742,8 @@ compiler it can also be used in other co @node Member Type Descriptor @section The @samp{@@} Type Descriptor -The @samp{@@} type descriptor is used together with the @samp{*} type -descriptor for a pointer-to-non-static-member-data type. It is followed +The @samp{@@} type descriptor is used 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. @@ -2756,7 +2756,7 @@ typedef int A::*int_in_a; generates the following stab: @smallexample -.stabs "int_in_a:t20=*21=@@19,1",128,0,0,0 +.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