From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30261 invoked by alias); 2 Aug 2006 21:02:05 -0000 Received: (qmail 30240 invoked by uid 22791); 2 Aug 2006 21:02:02 -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 21:01:59 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G8Nqo-00085i-7S; Wed, 02 Aug 2006 17:01:58 -0400 Date: Wed, 02 Aug 2006 21:02:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb-patches@sourceware.org Subject: Re: [rfa] Stabs documentation tweak for pointers to members Message-ID: <20060802210158.GA31053@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb-patches@sourceware.org References: <20060802032655.GA1847@nevyn.them.org> <200608022059.k72KxQNG007451@elgar.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608022059.k72KxQNG007451@elgar.sibelius.xs4all.nl> 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/msg00025.txt.bz2 On Wed, Aug 02, 2006 at 10:59:26PM +0200, Mark Kettenis wrote: > > Date: Tue, 1 Aug 2006 23:26:55 -0400 > > From: Daniel Jacobowitz > > > > 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. > > For what it is worth, I couldn't find any refernce to @@ in the Sun > "Stabs Interface Manual", so it's indeed very likely this is a gcc > invention. Yes, that's correct. The Sun manual documents a different solution to this problem, starting with 'Y' (I think it's 'YM'). The two "standards" diverged when there was no C++ support in Sun's; I suspect GCC got C++ first, but Sun got it better. But I don't actually know any of the history here so I'm just guessing. -- Daniel Jacobowitz CodeSourcery