Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa:doc] Clarify stabs @
@ 2003-01-30  3:12 Andrew Cagney
  2003-01-30  8:03 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2003-01-30  3:12 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 45 bytes --]

Following up a very old e-mail.

Ok?

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1405 bytes --]

2003-01-29  Andrew Cagney  <ac131313@redhat.com>

	* 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{@@}.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-30 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-30  3:12 [rfa:doc] Clarify stabs @ Andrew Cagney
2003-01-30  8:03 ` Eli Zaretskii
2003-01-30 15:44   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox