* dwarf2read.c (guess_structure_name): Allocate name on the
authorTom Tromey <tromey@redhat.com>
Mon, 15 Feb 2010 20:48:57 +0000 (20:48 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 15 Feb 2010 20:48:57 +0000 (20:48 +0000)
objfile obstack.

gdb/ChangeLog
gdb/dwarf2read.c

index 8fc4a85d835426d2c981482af4ce403877aa37cb..308f7302484a042fd83539b7fe09c4948dbc2539 100644 (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.
index 43017a429865444ad93e370a78b09da30477cd4f..a05c946c28ea88ab0ad8868aad6d4c7a40be6cd7 100644 (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;
This page took 0.031567 seconds and 4 git commands to generate.