aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-02-15 20:48:57 +0000
committerTom Tromey <tromey@redhat.com>2010-02-15 20:48:57 +0000
commita9854bd5116aaf3de753e82bdf2f84b81ad780b9 (patch)
tree83026d0b2a055d6f4c4c0a2029eb5289f5867ba4 /gdb
parentfd9e29b562a50ba711ec38d6760aa7e75b5c0256 (diff)
downloadgdb-a9854bd5116aaf3de753e82bdf2f84b81ad780b9.zip
gdb-a9854bd5116aaf3de753e82bdf2f84b81ad780b9.tar.gz
gdb-a9854bd5116aaf3de753e82bdf2f84b81ad780b9.tar.bz2
* dwarf2read.c (guess_structure_name): Allocate name on the
objfile obstack.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8fc4a85..308f730 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2010-02-15 Tom Tromey <tromey@redhat.com>
+ * dwarf2read.c (guess_structure_name): Allocate name on the
+ objfile obstack.
+
+2010-02-15 Tom Tromey <tromey@redhat.com>
+
* c-typeprint.c (c_type_print_base): Reverse order of test.
2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 43017a4..a05c946 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;