[rfa] Stabs documentation tweak for pointers to members

Daniel Jacobowitz drow@false.org
Wed Aug 2 21:02:00 GMT 2006


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 <drow@false.org>
> > 
> > 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



More information about the Gdb-patches mailing list