From 6c06a518bf28ee875ed4ef97985ca964adfc90f9 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 29 Dec 1993 16:22:31 +0000 Subject: [PATCH] * stabs.texinfo (Cross-References): `::' is for nested types only within <>. (Structures): Document static members. --- gdb/doc/ChangeLog | 6 ++++++ gdb/doc/stabs.texinfo | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 9ab449aa851..39657c97669 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 ce796c2efab..4903f87aea5 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 -- 2.30.2