aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-08-31 20:50:45 +0000
committerFred Fish <fnf@specifix.com>1992-08-31 20:50:45 +0000
commit95ff889ecd6ac24541dc8bf760d973a9865c1959 (patch)
treec0bae1a1a783a92e7bc59a22df5a34cbc550cfa8 /gdb/gdbtypes.h
parenta4ccc310323ef829ddb85a638ecd9c3563338e25 (diff)
downloadgdb-95ff889ecd6ac24541dc8bf760d973a9865c1959.zip
gdb-95ff889ecd6ac24541dc8bf760d973a9865c1959.tar.gz
gdb-95ff889ecd6ac24541dc8bf760d973a9865c1959.tar.bz2
* dwarfread.c (cu_language): New local variable to record
language for current compilation unit being processed. * dwarfread.c (set_cu_language): New local function to decode and record language for current compilation unit being processed. * dwarfread.c (synthesize_typedef): Add local function to synthesize a typedef for C++ classes, structs, unions, and enumerations. * dwarfread.c (read_structure_scope): Synthesize typedefs for C++ classes, structs and unions. * dwarfread.c (read_enumeration): Synthesize typedefs for C++ enumerations. * dwarfread.c (read_file_scope): Call set_cu_language to record language for current compilation unit. After symtab is built, save this recorded language. * dwarfread.c (process_dies, add_partial_symbol, struct_type, scan_partial_symbols, new_symbol): Recognize TAG_class_type. * dwarfread.c (add_partial_symbol): Synthesize partial symbol typedefs for C++ classes, structs, unions, and enumerations. * dwarfread.c (scan_compilation_units): Call set_cu_language to record language for current compilation unit. * dwarfread.c (scan_partial_symbols): Call add_enum_psymbol here for TAG_enumeration_types, rather than in add_partial_symbol. * dwarfread.c (add_partial_symbol): Combine TAG_enumeration_type case with class, struct, and union type cases, now that they are the same. Remove tests for non-NULL name attributes, now done by callers. * gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but treat as alias for TYPE_CODE_STRUCT for now.
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 8fae607..95f4035 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -83,6 +83,12 @@ enum type_code
TYPE_CODE_BOOL /* Builtin Modula-2 BOOLEAN */
};
+/* For now allow source to use TYPE_CODE_CLASS for C++ classes, as an
+ alias for TYPE_CODE_STRUCT. Eventually these should probably be
+ officially distinct types within gdb. */
+
+#define TYPE_CODE_CLASS TYPE_CODE_STRUCT
+
/* Some bits for the type's flags word. */
/* Explicitly unsigned integer type */