summaryrefslogtreecommitdiff
path: root/gdb/dictionary.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-04-06 19:50:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-04-06 19:50:03 +0000
commit6b8ae1cb9cf43edb299e3b5b03bef5187c1c8bd0 (patch)
treeae4be465e0021f8705737564ae026ee0c2982f68 /gdb/dictionary.c
parentc37203a97cba50e890d25f3f3ea7a6653b173675 (diff)
downloadgdb-6b8ae1cb9cf43edb299e3b5b03bef5187c1c8bd0.tar.gz
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.c2
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;
}