From b4c2267b03c42dec64a9b99f8150841d4e5281de Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 7 Jul 1993 18:26:03 +0000 Subject: [PATCH] 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. --- gdb/gdbtypes.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 848ce5fae20..c582df14399 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; -- 2.30.2