OSDN Git Service

Enable custom bcache hash function.
authorswagiaal <swagiaal>
Tue, 31 Aug 2010 17:26:06 +0000 (17:26 +0000)
committerswagiaal <swagiaal>
Tue, 31 Aug 2010 17:26:06 +0000 (17:26 +0000)
commiteba96ee67a495513548fd74797ff9980b08b4ade
tree10e67c1b4c5edbaf97c4e8d51fbe666ca7f4cd4d
parent997934a43ce78aba793d1c30cf788b2ea46df77b
Enable custom bcache hash function.

2010-08-25  Sami Wagiaalla  <swagiaal@redhat.com>

* psymtab.c (add_psymbol_to_bcache): Remove 'static' from
'static partial_symbol psymbol'.
(psymbol_hash): New function.
(psymbol_compare): New function.
* bcache.c (hash_continue): New.
(hash): Use hash_continue.
* bcache.c: Add hash_function and compare_function
pointers to bcache struct.
(bcache_full): Use bcache->hash_function, and
bcache->compare_function.
(bcache_compare): New function.
(bcache_xmalloc): Take hash_function and
compare_function arguments and initialize the
bcach's pointers.
Updated comment.
* objfiles.c (allocate_objfile): Updated.
* symfile.c (reread_symbols): Updated.
* python/py-type.c (typy_richcompare): Updated.
gdb/ChangeLog
gdb/bcache.c
gdb/bcache.h
gdb/objfiles.c
gdb/psymtab.c
gdb/psymtab.h
gdb/python/py-type.c
gdb/symfile.c