aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-06-28 22:03:31 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-06-28 22:03:31 +0000
commita0d7a4ff133e049b93df303de6da8c41424dabc7 (patch)
treedfb695fe688fa37f180f135fe1f8a4ab171193e7 /gdb/dwarf2read.c
parent595939dea136aa2721a24e6a71edba78e80fb3f5 (diff)
downloadgdb-a0d7a4ff133e049b93df303de6da8c41424dabc7.zip
gdb-a0d7a4ff133e049b93df303de6da8c41424dabc7.tar.gz
gdb-a0d7a4ff133e049b93df303de6da8c41424dabc7.tar.bz2
gdb/
* dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call ALLOCATE_CPLUS_STRUCT_TYPE.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 7febcab..d521ccd 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -5327,6 +5327,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu)
{
int i = fi.typedef_field_list_count;
+ ALLOCATE_CPLUS_STRUCT_TYPE (type);
TYPE_TYPEDEF_FIELD_ARRAY (type)
= TYPE_ALLOC (type, sizeof (TYPE_TYPEDEF_FIELD (type, 0)) * i);
TYPE_TYPEDEF_FIELD_COUNT (type) = i;