summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2004-02-21 21:00:12 +0000
committerDaniel Jacobowitz <dan@debian.org>2004-02-21 21:00:12 +0000
commit09a0b84d4b0eed5d7022ec5f6cb535967f65c0e4 (patch)
tree93b7544fc7dfd0e8f54d80b06f6576d91d7bb228 /gdb/dwarf2read.c
parent2b52c4367366b606631a579ab9e28de7a009653f (diff)
downloadgdb-09a0b84d4b0eed5d7022ec5f6cb535967f65c0e4.tar.gz
* dwarf2read.c (dwarf2_build_psymtabs_hard): Estimate the initial
size of the hash table.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 6c135f0cafa..e7749733053 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1346,7 +1346,8 @@ dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
obstack_init (&cu.partial_die_obstack);
cu.partial_dies
- = htab_create_alloc_ex (29, partial_die_hash,
+ = htab_create_alloc_ex (cu.header.length / 12,
+ partial_die_hash,
partial_die_eq,
NULL,
&cu.partial_die_obstack,