diff options
author | John Gilmore <gnu@cygnus> | 1992-06-15 08:47:56 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-06-15 08:47:56 +0000 |
commit | 2778e915845a70ed0031e93a78917c5fff7fcd02 (patch) | |
tree | 073102c536d1030dad08594548b0bcf2d1af3d36 /gdb/buildsym.c | |
parent | d69bba12b852d7882a2de829f28ab737b81ce2cf (diff) | |
download | fsf-binutils-gdb-2778e915845a70ed0031e93a78917c5fff7fcd02.zip fsf-binutils-gdb-2778e915845a70ed0031e93a78917c5fff7fcd02.tar.gz fsf-binutils-gdb-2778e915845a70ed0031e93a78917c5fff7fcd02.tar.bz2 |
* buildsym.c (define_symbol): Nameless types are now on several
platforms; generalize them and un-ifdef them to make Solaris 2
work.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 6b84666..9af0af6 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -1078,14 +1078,12 @@ define_symbol (valu, string, desc, type, objfile) register int i; struct type *temptype; -#ifdef IBM6000_TARGET /* We would like to eliminate nameless symbols, but keep their types. E.g. stab entry ":t10=*2" should produce a type 10, which is a pointer to type 2, but, should not creat a symbol to address that type. Since the symbol will be nameless, there is no way any user can refer to it. */ int nameless; -#endif /* Ignore syms with empty names. */ if (string[0] == 0) @@ -1095,11 +1093,9 @@ define_symbol (valu, string, desc, type, objfile) if (p == 0) return 0; -#ifdef IBM6000_TARGET /* If a nameless stab entry, all we need is the type, not the symbol. e.g. ":t10=*2" */ nameless = (p == string); -#endif sym = (struct symbol *)obstack_alloc (&objfile -> symbol_obstack, sizeof (struct symbol)); @@ -1483,12 +1479,10 @@ define_symbol (valu, string, desc, type, objfile) break; case 't': -#ifdef IBM6000_TARGET /* For a nameless type, we don't want a create a symbol, thus we did not use `sym'. Return without further processing. */ - if (nameless) return NULL; -#endif + SYMBOL_CLASS (sym) = LOC_TYPEDEF; SYMBOL_VALUE (sym) = valu; SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE; @@ -1512,6 +1506,10 @@ define_symbol (valu, string, desc, type, objfile) break; case 'T': + /* For a nameless type, we don't want a create a symbol, thus we + did not use `sym'. Return without further processing. */ + if (nameless) return NULL; + SYMBOL_CLASS (sym) = LOC_TYPEDEF; SYMBOL_VALUE (sym) = valu; SYMBOL_NAMESPACE (sym) = STRUCT_NAMESPACE; |