diff options
author | Tom Tromey <tromey@redhat.com> | 2010-06-28 19:05:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-06-28 19:05:42 +0000 |
commit | d3f41bb17012c1c836b552009b71c428774ddeed (patch) | |
tree | 3b77bd4c3dc1f5e4d2333668668a46d2a86834a7 /gdb/dwarf2read.c | |
parent | 23e7acfb8e8d982c021a54631384b301c16a1223 (diff) | |
download | gdb-d3f41bb17012c1c836b552009b71c428774ddeed.zip gdb-d3f41bb17012c1c836b552009b71c428774ddeed.tar.gz gdb-d3f41bb17012c1c836b552009b71c428774ddeed.tar.bz2 |
* dwarf2read.c (read_structure_type): Allocate null cleanup later.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index bab1fba..43e7120 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -5082,7 +5082,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu) struct type *type; struct attribute *attr; char *name; - struct cleanup *back_to = make_cleanup (null_cleanup, 0); + struct cleanup *back_to; /* If the definition of this type lives in .debug_types, read that type. Don't follow DW_AT_specification though, that will take us back up @@ -5101,6 +5101,8 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu) return set_die_type (die, type, cu); } + back_to = make_cleanup (null_cleanup, 0); + type = alloc_type (objfile); INIT_CPLUS_SPECIFIC (type); |