diff options
author | 2011-04-06 19:50:05 +0000 | |
---|---|---|
committer | 2011-04-06 19:50:05 +0000 | |
commit | 59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2 (patch) | |
tree | 118f98db3d708cd3040abc9be056ed0a817e9449 /gdb/dictionary.c | |
parent | bfd: (diff) | |
download | binutils-gdb-59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2.tar.gz binutils-gdb-59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2.tar.bz2 binutils-gdb-59d7bcaf18f0f9cff495e7a1a9e08dde859fb1f2.zip |
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/dictionary.c')
-rw-r--r-- | gdb/dictionary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dictionary.c b/gdb/dictionary.c index 29816921d91..8142d291bea 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -826,7 +826,7 @@ dict_hash (const char *string0) } /* FALL THROUGH */ default: - hash = hash * 67 + *string - 113; + hash = SYMBOL_HASH_NEXT (hash, *string); string += 1; break; } |