diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-12-29 16:22:31 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-12-29 16:22:31 +0000 |
commit | 6c06a518bf28ee875ed4ef97985ca964adfc90f9 (patch) | |
tree | 99ba3bc5126859aeb0f137ee04b4d6103cc4e100 | |
parent | 96e5cb213845abdae65dd06f7f7fc226df897698 (diff) | |
download | gdb-6c06a518bf28ee875ed4ef97985ca964adfc90f9.zip gdb-6c06a518bf28ee875ed4ef97985ca964adfc90f9.tar.gz gdb-6c06a518bf28ee875ed4ef97985ca964adfc90f9.tar.bz2 |
* stabs.texinfo (Cross-References): `::' is for nested types only
within <>.
(Structures): Document static members.
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/stabs.texinfo | 14 |
2 files changed, 18 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 9ab449a..39657c9 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +Tue Dec 28 09:30:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * stabs.texinfo (Cross-References): `::' is for nested types only + within <>. + (Structures): Document static members. + Mon Dec 27 13:55:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * stabs.texinfo: Document S type attribute. diff --git a/gdb/doc/stabs.texinfo b/gdb/doc/stabs.texinfo index ce796c2..4903f87 100644 --- a/gdb/doc/stabs.texinfo +++ b/gdb/doc/stabs.texinfo @@ -1648,8 +1648,9 @@ yet been defined. Another way is with the @samp{x} type descriptor, which is followed by @samp{s} for a structure tag, @samp{u} for a union tag, or @samp{e} for a enumerator tag, followed by the name of the tag, followed by @samp{:}. -The name can contain @samp{::}---only a single @samp{:} ends the name; -see @ref{Nested Symbols}. +If the name contains @samp{::} between a @samp{<} and @samp{>} pair (for +C++ templates), such a @samp{::} does not end the name---only a single +@samp{:} ends the name; see @ref{Nested Symbols}. For example, the following C declarations: @@ -1932,6 +1933,15 @@ The @code{s_next} field is a pointer to the same kind of structure that the field is an element of. So the definition of structure type 16 contains a type definition for an element which is a pointer to type 16. +If a field is a static member (this is a C++ feature in which a single +variable appears to be a field of every structure of a given type) it +still starts out with the field name, a colon, and the type, but then +instead of a comma, bit position, comma, and bit size, there is a colon +followed by the name of the variable which each such field refers to. + +If the structure has methods (a C++ feature), they follow the non-method +fields; see @ref{Cplusplus}. + @node Typedefs @section Giving a Type a Name |