summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
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,