aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-11-28 00:51:48 +0000
committerJohn Gilmore <gnu@cygnus>1991-11-28 00:51:48 +0000
commit67c29f758dfe3fdb08c77595154de1aaf5b9fafd (patch)
tree288a8487a9acbf74f658f0231c25ce96d2ec44db /gdb/symtab.h
parent52bd2c221fc584e776fdc34cd66753a965a8cacc (diff)
downloadgdb-67c29f758dfe3fdb08c77595154de1aaf5b9fafd.zip
gdb-67c29f758dfe3fdb08c77595154de1aaf5b9fafd.tar.gz
gdb-67c29f758dfe3fdb08c77595154de1aaf5b9fafd.tar.bz2
Make structs work on DECstation (sigh)
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 801bc5f..2c5646e 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -195,7 +195,7 @@ struct type
int vptr_fieldno;
/* Slot to point to additional language-specific fields of this type. */
- union
+ union type_specific
{
struct type **arg_types;
struct cplus_struct_type *cplus_stuff;
@@ -674,6 +674,7 @@ int current_source_line;
#define TYPE_FN_FIELDS(thistype) TYPE_CPLUS_SPECIFIC(thistype)->fn_fields
#define TYPE_NFN_FIELDS(thistype) TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields
#define TYPE_NFN_FIELDS_TOTAL(thistype) TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields_total
+#define TYPE_TYPE_SPECIFIC(thistype) (thistype)->type_specific
#define TYPE_ARG_TYPES(thistype) (thistype)->type_specific.arg_types
#define TYPE_CPLUS_SPECIFIC(thistype) (thistype)->type_specific.cplus_stuff
#define TYPE_BASECLASS(thistype,index) (thistype)->fields[index].type