From a0d7a4ff133e049b93df303de6da8c41424dabc7 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 28 Jun 2010 22:03:31 +0000 Subject: [PATCH] gdb/ * dwarf2read.c (read_structure_type) : Call ALLOCATE_CPLUS_STRUCT_TYPE. --- gdb/ChangeLog | 7 +++++-- gdb/dwarf2read.c | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 348eed9cea4..5d40ebf9978 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-06-28 Jan Kratochvil + + * dwarf2read.c (read_structure_type) : Call + ALLOCATE_CPLUS_STRUCT_TYPE. + 2010-06-28 Phil Muldoon Tom Tromey Thiago Jung Bauermann @@ -27,8 +32,6 @@ * python/py-inferior.c: New File. * python/py-infthread.c: New File. - - 2010-06-28 Jan Kratochvil * c-typeprint.c (c_type_print_base): For no fields check include also diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7febcab6b49..d521ccd3ef4 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; -- 2.30.2