Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sourceware.org
Subject: [rfa] Stabs documentation tweak for pointers to members
Date: Wed, 02 Aug 2006 03:26:00 -0000	[thread overview]
Message-ID: <20060802032655.GA1847@nevyn.them.org> (raw)

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  <dan@codesourcery.com>

	* 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


             reply	other threads:[~2006-08-02  3:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-02  3:26 Daniel Jacobowitz [this message]
2006-08-02  3:30 ` Eli Zaretskii
2006-08-02  3:31   ` Daniel Jacobowitz
2006-08-02 21:00 ` Mark Kettenis
2006-08-02 21:02   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060802032655.GA1847@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox