mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* dwarf2read.c (dwarf2_per_objfile_free): Clear
dwarf2_per_objfile.
This commit is contained in:
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user