diff options
author | Per Bothner <per@bothner.com> | 1991-12-23 23:16:58 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1991-12-23 23:16:58 +0000 |
commit | 7e258d18e0112304099fbefbe910a53659b98a3d (patch) | |
tree | a1dd070cd40879a617d8cbddcf0417abf882a6af /gdb/dwarfread.c | |
parent | 3e60a6b1d3064f0e08369dbe0bae64d632fcb773 (diff) | |
download | gdb-7e258d18e0112304099fbefbe910a53659b98a3d.zip gdb-7e258d18e0112304099fbefbe910a53659b98a3d.tar.gz gdb-7e258d18e0112304099fbefbe910a53659b98a3d.tar.bz2 |
Oodles of changes. The most important is adding support for stabs
encapsulated in mips ecoff. See ChangeLog for the gory details.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index 65a4c3f..e0c286b 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -331,11 +331,24 @@ EXFUN(start_psymtab, (struct objfile *objfile AND CORE_ADDR addr static void EXFUN(add_partial_symbol, (struct dieinfo *dip)); +#ifdef DEBUG static void -EXFUN(add_psymbol_to_list, - (struct psymbol_allocation_list *listp AND char *name - AND enum namespace space AND enum address_class class - AND CORE_ADDR value)); +DEFUN(add_psymbol_to_list, + (listp, name, space, class, value), + struct psymbol_allocation_list *listp AND + char *name AND + enum namespace space AND + enum address_class class AND + CORE_ADDR value) +{ + ADD_PSYMBOL_VT_TO_LIST(name, strlen(name), space, class, + listp, value, SYMBOL_VALUE); +} +#else +#define add_psymbol_to_list(listp, name, space, class, value) \ + ADD_PSYMBOL_VT_TO_LIST(name, strlen(name), space, class, \ + *(listp), value, SYMBOL_VALUE) +#endif static void EXFUN(init_psymbol_list, (int total_symbols)); @@ -913,10 +926,7 @@ DEFUN(struct_type, (dip, thisdie, enddie, objfile), /* No forward references created an empty type, so install one now */ type = alloc_utype (dip -> dieref, NULL); } - TYPE_CPLUS_SPECIFIC (type) = (struct cplus_struct_type *) - obstack_alloc (symbol_obstack, sizeof (struct cplus_struct_type)); - (void) memset (TYPE_CPLUS_SPECIFIC (type), 0, - sizeof (struct cplus_struct_type)); + TYPE_CPLUS_SPECIFIC(type) = &cplus_struct_default; switch (dip -> dietag) { case TAG_structure_type: @@ -2655,6 +2665,7 @@ DEFUN(start_psymtab, return result; } +#if 0 /* LOCAL FUNCTION @@ -2696,6 +2707,7 @@ DEFUN(add_psymbol_to_list, SYMBOL_CLASS (psym) = class; SYMBOL_VALUE (psym) = value; } +#endif /* |