* dwarf2read.c (dwarf2_per_objfile_free): Clear

dwarf2_per_objfile.
This commit is contained in:
Tom Tromey 2013-07-17 15:22:30 +00:00
parent b56e23fb1f
commit 626f2d1cfd
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-07-17 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (dwarf2_per_objfile_free): Clear
dwarf2_per_objfile.
2013-07-16 Doug Evans <dje@google.com>
* nto-tdep.c (nto_relocate_section_addresses): Update,

View file

@ -20546,6 +20546,10 @@ dwarf2_per_objfile_free (struct objfile *objfile, void *d)
struct dwarf2_per_objfile *data = d;
int ix;
/* Make sure we don't accidentally use dwarf2_per_objfile while
cleaning up. */
dwarf2_per_objfile = NULL;
for (ix = 0; ix < data->n_comp_units; ++ix)
VEC_free (dwarf2_per_cu_ptr, data->all_comp_units[ix]->imported_symtabs);