aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-03-09 22:58:49 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-03-09 22:58:49 +0000
commita79dea61e75c0a10ad7d7ba7efe0148a04bc914a (patch)
tree75eb0035b8c117493ba9951737ed5cb7d047b5e9 /gdb/minsyms.c
parent5c86cbc78f1a6d47fe6da87f2b1fc4db736744e4 (diff)
downloadfsf-binutils-gdb-a79dea61e75c0a10ad7d7ba7efe0148a04bc914a.zip
fsf-binutils-gdb-a79dea61e75c0a10ad7d7ba7efe0148a04bc914a.tar.gz
fsf-binutils-gdb-a79dea61e75c0a10ad7d7ba7efe0148a04bc914a.tar.bz2
2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* minsyms.c (prim_record_minimal_symbol_and_info): Add comment.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 9a083c0..b5cafee 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -667,6 +667,8 @@ prim_record_minimal_symbol_and_info (name, address, ms_type, info, section,
/* FIXME: This info, if it remains, needs its own field. */
MSYMBOL_INFO (msymbol) = info; /* FIXME! */
+ /* The hash pointers must be cleared! If they're not,
+ MSYMBOL_HASH_ADD will NOT add this msymbol to the hash table. */
msymbol->hash_next = NULL;
msymbol->demangled_hash_next = NULL;