aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-09-27 17:41:36 +0000
committerTom Tromey <tromey@redhat.com>2010-09-27 17:41:36 +0000
commitd3aff959354bb71f78f0f2077a3c1827452d24b3 (patch)
treeacd80b346b453762d910512158daee7a12312100 /gdb
parent716b65bf40998f09290ef4806168edb636c4bacc (diff)
downloadgdb-d3aff959354bb71f78f0f2077a3c1827452d24b3.zip
gdb-d3aff959354bb71f78f0f2077a3c1827452d24b3.tar.gz
gdb-d3aff959354bb71f78f0f2077a3c1827452d24b3.tar.bz2
* bcache.c (expand_hash_table): Use hash_function, not hash.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/bcache.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eb668c2..dad1e65 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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.
2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/gdb/bcache.c b/gdb/bcache.c
index 653d6fb..e6ca06c 100644
--- 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;