61b2884
commit 477c1359b217cdc052a7c9f83cae9c894396894c
61b2884
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
61b2884
Date:   Mon Jun 28 22:03:31 2010 +0000
61b2884
61b2884
    gdb/
61b2884
    	* dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
61b2884
    	ALLOCATE_CPLUS_STRUCT_TYPE.
61b2884
61b2884
### a/gdb/ChangeLog
61b2884
### b/gdb/ChangeLog
61b2884
## -1,3 +1,8 @@
61b2884
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
61b2884
+
61b2884
+	* dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
61b2884
+	ALLOCATE_CPLUS_STRUCT_TYPE.
61b2884
+
61b2884
 2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
61b2884
             Tom Tromey  <tromey@redhat.com>
61b2884
             Thiago Jung Bauermann  <bauerman@br.ibm.com>
61b2884
## -27,8 +32,6 @@
61b2884
 	* python/py-inferior.c: New File.
61b2884
 	* python/py-infthread.c: New File.
61b2884
 
61b2884
-
61b2884
-
61b2884
 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
61b2884
 
61b2884
 	* c-typeprint.c (c_type_print_base): For no fields check include also
61b2884
--- a/gdb/dwarf2read.c
61b2884
+++ b/gdb/dwarf2read.c
61b2884
@@ -5327,6 +5327,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu)
61b2884
 	{
61b2884
 	  int i = fi.typedef_field_list_count;
61b2884
 
61b2884
+	  ALLOCATE_CPLUS_STRUCT_TYPE (type);
61b2884
 	  TYPE_TYPEDEF_FIELD_ARRAY (type)
61b2884
 	    = TYPE_ALLOC (type, sizeof (TYPE_TYPEDEF_FIELD (type, 0)) * i);
61b2884
 	  TYPE_TYPEDEF_FIELD_COUNT (type) = i;