From: Tom Tromey Date: Wed, 20 Jan 2010 02:05:03 +0000 (+0000) Subject: PR c++/11026: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95519e0ee9887b575e2ea52ed9599ff90b41aebd;p=binutils-gdb.git PR c++/11026: * dwarf2read.c (read_partial_die): Allocate partial DIE's name on objfile obstack. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07ed4d2e6e5..2e52f74c27e 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 db516539029..15ef3e9ee8b 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;