PR c++/11026:
authorTom Tromey <tromey@redhat.com>
Wed, 20 Jan 2010 02:05:03 +0000 (02:05 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 20 Jan 2010 02:05:03 +0000 (02:05 +0000)
* dwarf2read.c (read_partial_die): Allocate partial DIE's name on
objfile obstack.

gdb/ChangeLog
gdb/dwarf2read.c

index 07ed4d2e6e5480eea26c72b81baa5c7161a21727..2e52f74c27e81f29e1568504d001c7c3f32c749f 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-19  Tom Tromey  <tromey@redhat.com>
+
+       PR c++/11026:
+       * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
+       objfile obstack.
+
 2010-01-19  Tom Tromey  <tromey@redhat.com>
 
        * top.c (stop_sig, float_handler, do_nothing): Remove.
index db516539029f3c1c4a18db1752a863b9ba589b1a..15ef3e9ee8beeae184b057d2d86ffa4df31fd43b 100644 (file)
@@ -6781,7 +6781,7 @@ read_partial_die (struct partial_die_info *part_die,
            default:
              part_die->name
                = dwarf2_canonicalize_name (DW_STRING (&attr), cu,
-                                           &cu->comp_unit_obstack);
+                                           &cu->objfile->objfile_obstack);
              break;
            }
          break;