* dwarf2read.c (guess_structure_name): Allocate name on the

objfile obstack.
This commit is contained in:
Tom Tromey 2010-02-15 20:48:57 +00:00
parent fd9e29b562
commit a9854bd511
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-02-15 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (guess_structure_name): Allocate name on the
objfile obstack.
2010-02-15 Tom Tromey <tromey@redhat.com>
* c-typeprint.c (c_type_print_base): Reverse order of test.

View file

@ -2765,7 +2765,7 @@ guess_structure_name (struct partial_die_info *struct_pdi,
struct_pdi->name
= obsavestring (actual_class_name,
strlen (actual_class_name),
&cu->comp_unit_obstack);
&cu->objfile->objfile_obstack);
xfree (actual_class_name);
}
break;