OSDN Git Service

From Tom Tromey <tromey@cygnus.com> and Keith Seitz <?>:
authorJim Blandy <jimb@codesourcery.com>
Tue, 7 Mar 2000 04:33:52 +0000 (04:33 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 7 Mar 2000 04:33:52 +0000 (04:33 +0000)
commit7a9a235ef82df47033887837d4773ac2209471fb
treed0db873d91307c97ba3eec223766b77d7bac28ed
parente3025c2eeb90a4d6f339b62ac46c7e437327608a
From Tom Tromey <tromey@cygnus.com> and Keith Seitz <?>:

* minsyms.c: #include <ctype.h>, for msymbol_hash_iw.
(compact_minimal_symbols): Added `objfile' argument.
Put symbols in the objfile's hash table.
(install_minimal_symbols): Put symbols in the objfile's demangled
hash table.
(lookup_minimal_symbol): Use hash table to find symbol in
objfile.
(msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): New
functions.
(prim_record_minimal_symbol_and_info): Initialize the
hash link fields of the new minimal symbol.
* symtab.h (struct minimal_symbol): New fields `hash_next',
`demangled_hash_next'.
(msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): Declare.
* objfiles.h (MINIMAL_SYMBOL_HASH_SIZE): New define.
(struct objfile): New fields `msymbol_hash',
`msymbol_demangled_hash'.
gdb/ChangeLog
gdb/minsyms.c
gdb/objfiles.h
gdb/symtab.h