From a9854bd5116aaf3de753e82bdf2f84b81ad780b9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 15 Feb 2010 20:48:57 +0000 Subject: [PATCH] * dwarf2read.c (guess_structure_name): Allocate name on the objfile obstack. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8fc4a85d835..308f7302484 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-15 Tom Tromey + + * dwarf2read.c (guess_structure_name): Allocate name on the + objfile obstack. + 2010-02-15 Tom Tromey * c-typeprint.c (c_type_print_base): Reverse order of test. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 43017a42986..a05c946c28e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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; -- 2.30.2