diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-06 19:50:05 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-06 19:50:05 +0000 |
commit | 59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2 (patch) | |
tree | 118f98db3d708cd3040abc9be056ed0a817e9449 /gdb/dwarf2read.c | |
parent | 8c5fc8001110c72f83edccd8d3872cc868454f54 (diff) | |
download | gdb-59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2.zip gdb-59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2.tar.gz gdb-59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2.tar.bz2 |
gdb/
Code cleanup.
* dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
* dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
in the function comment, a new note on values compatibility.
* minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
* symtab.h (SYMBOL_HASH_NEXT): New.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 591e474..5086733 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1962,11 +1962,11 @@ create_addrmap_from_index (struct objfile *objfile, struct mapped_index *index) do_cleanups (cleanup); } -/* The hash function for strings in the mapped index. This is the - same as the hashtab.c hash function, but we keep a separate copy to - maintain control over the implementation. This is necessary - because the hash function is tied to the format of the mapped index - file. */ +/* The hash function for strings in the mapped index. This is the same as + SYMBOL_HASH_NEXT, but we keep a separate copy to maintain control over the + implementation. This is necessary because the hash function is tied to the + format of the mapped index file. The hash values do not have to match with + SYMBOL_HASH_NEXT. */ static hashval_t mapped_index_string_hash (const void *p) |