]> Git Repo - binutils.git/commitdiff
* dwarf2read.c (dwarf2_per_objfile_free): Clear
authorTom Tromey <[email protected]>
Wed, 17 Jul 2013 15:22:30 +0000 (15:22 +0000)
committerTom Tromey <[email protected]>
Wed, 17 Jul 2013 15:22:30 +0000 (15:22 +0000)
dwarf2_per_objfile.

gdb/ChangeLog
gdb/dwarf2read.c

index 065484de417e74957160dcb4437034126a7a96fd..3a8389806df051037dc72b3a8a0710b3b33f068d 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-17  Tom Tromey  <[email protected]>
+
+       * dwarf2read.c (dwarf2_per_objfile_free): Clear
+       dwarf2_per_objfile.
+
 2013-07-16  Doug Evans  <[email protected]>
 
        * nto-tdep.c (nto_relocate_section_addresses): Update,
index 62e42ca19fe704aa70e023d0238b5f63fbbaafc4..94727a734a8ce336dd02ce6e3fe9b5ebe06aa6c7 100644 (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);
 
This page took 0.079721 seconds and 4 git commands to generate.