diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-05-21 14:08:17 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-05-21 14:08:17 +0000 |
commit | 7326242025e8f2044ecd483f0b5cc0b85851110c (patch) | |
tree | 41298c11af69d8b8819073b6dda5237e63897875 | |
parent | ebc447f46dcafab27a31d0f48fc25254940e32ad (diff) | |
download | gdb-7326242025e8f2044ecd483f0b5cc0b85851110c.zip gdb-7326242025e8f2044ecd483f0b5cc0b85851110c.tar.gz gdb-7326242025e8f2044ecd483f0b5cc0b85851110c.tar.bz2 |
* xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/xcoffread.c | 18 |
2 files changed, 12 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b40bce6..467637c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol. + Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * config/i386/linux.mh: Re-enable coredumps now that they should work. diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index d765f03..aaf8d59 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -53,6 +53,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "libcoff.h" /* FIXME, internal data from BFD */ #include "coff/rs6000.h" /* FIXME, raw file-format guts of xcoff */ +/* For interface with stabsread.c. */ +#include "stab_gnu.h" /* Define this if you want gdb to ignore typdef stabs. This was needed for one of Transarc, to reduce the size of the symbol table. Types won't be @@ -1742,16 +1744,12 @@ process_xcoff_symbol (cs, objfile) return sym; case C_LSYM: - if (*name == ':' || (pp = (char *) strchr (name, ':')) == NULL) - return NULL; - SYMBOL_NAME (sym) = obsavestring (name, pp-name, &objfile -> symbol_obstack); - SYMBOL_CLASS (sym) = LOC_LOCAL; - pp += 1; - SYMBOL_TYPE (sym) = read_type (&pp, objfile); - SYMBOL_SECTION (sym) = cs->c_secnum; - SYMBOL_DUP (sym, sym2); - add_symbol_to_list (sym2, &local_symbols); - break; + sym = define_symbol (cs->c_value, cs->c_name, 0, N_LSYM, objfile); + if (sym != NULL) + { + SYMBOL_SECTION (sym) = cs->c_secnum; + } + return sym; case C_AUTO: SYMBOL_CLASS (sym) = LOC_LOCAL; |