diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07ed4d2e6e..2e52f74c27 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-01-19 Tom Tromey + + PR c++/11026: + * dwarf2read.c (read_partial_die): Allocate partial DIE's name on + objfile obstack. + 2010-01-19 Tom Tromey * top.c (stop_sig, float_handler, do_nothing): Remove. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index db51653902..15ef3e9ee8 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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;