aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-01-20 02:05:03 +0000
committerTom Tromey <tromey@redhat.com>2010-01-20 02:05:03 +0000
commit95519e0ee9887b575e2ea52ed9599ff90b41aebd (patch)
treec6178eabf0afa56ee4e2e8c221f39927b2895c2d /gdb/dwarf2read.c
parent500ee42ee091d6e8860d237bd5e74e8cdcf61d70 (diff)
downloadgdb-95519e0ee9887b575e2ea52ed9599ff90b41aebd.zip
gdb-95519e0ee9887b575e2ea52ed9599ff90b41aebd.tar.gz
gdb-95519e0ee9887b575e2ea52ed9599ff90b41aebd.tar.bz2
PR c++/11026:
* dwarf2read.c (read_partial_die): Allocate partial DIE's name on objfile obstack.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index db51653..15ef3e9 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;