aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/stabs.texinfo
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-30 15:44:43 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-30 15:44:43 +0000
commit6b894e49920572c94685bcf10432723574eb6ba4 (patch)
treeeeb95054d07578f21e4ec172f99527c0abf7d8ed /gdb/doc/stabs.texinfo
parent7f6104a94dfb5e105145e0b285499ebc9a1c9d30 (diff)
downloadgdb-6b894e49920572c94685bcf10432723574eb6ba4.zip
gdb-6b894e49920572c94685bcf10432723574eb6ba4.tar.gz
gdb-6b894e49920572c94685bcf10432723574eb6ba4.tar.bz2
2003-01-30 Andrew Cagney <ac131313@redhat.com>
* stabs.texinfo (Member Type Descriptor): Clarify description of `@'. Suggested by Ben Hutchings.
Diffstat (limited to 'gdb/doc/stabs.texinfo')
-rw-r--r--gdb/doc/stabs.texinfo21
1 files changed, 16 insertions, 5 deletions
diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo
index 52b88b4..c334d45 100644
--- a/gdb/doc/stabs.texinfo
+++ b/gdb/doc/stabs.texinfo
@@ -2724,11 +2724,22 @@ compiler it can also be used in other contexts.
@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{@@}.