projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
716b65b
)
* bcache.c (expand_hash_table): Use hash_function, not hash.
author
Tom Tromey
<tromey@redhat.com>
Mon, 27 Sep 2010 17:41:36 +0000
(17:41 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Mon, 27 Sep 2010 17:41:36 +0000
(17:41 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/bcache.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index eb668c24ab6cb0326940cdfbf5c0347d099f90a4..dad1e65086b390e4f22b7abe9e11976cae0f2729 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+2010-09-27 Tom Tromey <tromey@redhat.com>
+
+ * bcache.c (expand_hash_table): Use hash_function, not hash.
+
2010-09-27 Tom Tromey <tromey@redhat.com>
* gdb_wchar.h: Change minimum libiconv to 0x108.
diff --git
a/gdb/bcache.c
b/gdb/bcache.c
index 653d6fb311a4b7ca692bef49f16645c9b8f8fb3a..e6ca06c8d5806c77023dc5271f7ec0f038f783c7 100644
(file)
--- a/
gdb/bcache.c
+++ b/
gdb/bcache.c
@@
-184,7
+184,8
@@
expand_hash_table (struct bcache *bcache)
struct bstring **new_bucket;
next = s->next;
- new_bucket = &new_buckets[(hash (&s->d.data, s->length)
+ new_bucket = &new_buckets[(bcache->hash_function (&s->d.data,
+ s->length)
% new_num_buckets)];
s->next = *new_bucket;
*new_bucket = s;