diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-07 18:26:03 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-07 18:26:03 +0000 |
commit | b4c2267b03c42dec64a9b99f8150841d4e5281de (patch) | |
tree | 12ab4ed59d13539c6861c5a1d485b122bbb753d3 /gdb | |
parent | ebd2413529426b488d9519f9360aeec6df5f5d84 (diff) | |
download | gdb-b4c2267b03c42dec64a9b99f8150841d4e5281de.zip gdb-b4c2267b03c42dec64a9b99f8150841d4e5281de.tar.gz gdb-b4c2267b03c42dec64a9b99f8150841d4e5281de.tar.bz2 |
gdbtypes.h: Fix comments regarding the following change:
Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com)
* gdbtypes.h (struct type): Add field tag_name.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbtypes.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 848ce5f..c582df1 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -137,14 +137,20 @@ struct type enum type_code code; /* Name of this type, or NULL if none. + This is used for printing only, except by poorly designed C++ code. - Type names specified as input are defined by symbols. */ + For looking up a name, look for a symbol in the VAR_NAMESPACE. */ char *name; - /* Tag name for this type, or NULL if none. This is a feature which is - specific to C/C++ for structs, unions, or enums. - This is used for printing only, except by poorly designed C++ code. */ + /* Tag name for this type, or NULL if none. This means that the + name of the type consists of a keyword followed by the tag name. + Which keyword is determined by the type code ("struct" for + TYPE_CODE_STRUCT, etc.). As far as I know C/C++ are the only languages + with this feature. + + This is used for printing only, except by poorly designed C++ code. + For looking up a name, look for a symbol in the STRUCT_NAMESPACE. */ char *tag_name; |