From 95519e0ee9887b575e2ea52ed9599ff90b41aebd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 20 Jan 2010 02:05:03 +0000 Subject: [PATCH] PR c++/11026: * dwarf2read.c (read_partial_die): Allocate partial DIE's name on objfile obstack. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2read.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2